Instrumentation you add
|Insights you receive|
|Server insights: Add the SDK to your Java web application||Server-side metrics of response times, volumes of requests, numbers of users. Alerts on bad performance.|
|Client insights: Add the Application Insights script to your web pages||Page views, user and session counts, return rates and browser types.|
|Availability web tests||Chart response times, get alerts on outages.|
|Add custom telemetry – client-side, server-side, or both||Track how your application is being used by sending custom events, metrics and exceptions.|
|Add the Application Insights logging appender to your logging framework||Explore your application logs directly in the Application Insights portal with powerful slice and dice capabilities.|
Adding the Application Insights SDK for Java to your projectIf you develop your project using Eclipse, adding the Application Insights SDK for Java to your dynamic web project is easy. All you need to do is install the newest version of the Azure Toolkit for Eclipse (By Microsoft Open Technologies) which will be available during the week of EclipseCon, right-click your project, select “Configure Application Insights”, and provide your instrumentation key. Step by step guide on how to do this. There are a number of additional ways to add the SDK to your Java project: using Maven, Gradle, or manually. This article covers all these options in detail.
Can I use Visual Studio Online to plan, code, build, test and deploy my Java applications?Absolutely, Visual Studio Online provides cloud-hosted tools for your Java teams that complement your favorite Java tools and services such as Eclipse and Jenkins, respectively.
What’s next?Now that you’ve added the SDK to your project, you can go ahead and add more instrumentation to gain a variety of insights about your Java application. Here are some links to get you started:
- Track usage of web applications – add a script to your web pages to track page views, users and sessions
- Explore Java trace logs in Application Insights – capture logs from your favorite logging framework so you can slice and dice along with request and page view events
- Write custom telemetry with Application Insights API – track what people do with your app
- Monitor any web site's availability and responsiveness – set up web tests
- Track HTTP requests in a Java web application – view information about the HTTP requests sent to your application