Application Insights for Java
|Build & Unit Tests||Smoke Tests|
This is the repository of the Java SDK for Azure Application Insights. Application Insights is a service that monitors the availability, performance and usage of your application. The SDK sends telemetry about the performance and usage of your app to the Application Insights service where your data can be visualized in the Azure Portal. The SDK automatically collects telemetry about HTTP requests, dependencies, and exceptions. You can also use the SDK to send your own events and trace logs.
For more information please refer to:
- Getting started with Application Insights in a Java web project
- Application Insights overview
- Application Insights with SpringBoot
The following packages are built in this repository:
- Base API and channel:
- Web applications instrumentation:
- Application Insights SpringBoot Starter:
- Logback adaptor:
- Log4J 2 adaptor:
- Log4J 1.2 adaptor:
To upgrade to the latest SDK
After you upgrade, you'll need to merge back any customizations you made to
ApplicationInsights.xml. Take a copy of it to compare with the new file.
If you're using Maven or Gradle
- If you specified a particular version number in
build.gradle, update it.
- Refresh your project's dependencies.
- Download the latest version of Application Insights Java SDK, scroll down to the getting started section and follow the instructions to manually download the SDK and replace the old
Compare the old and new
ApplicationInsights.xml. Many of the changes you see are because we added and removed modules. Reinstate any customizations that you made.
Application Insights for Java Roadmap
The Application Insights team have been hard at work to deliver the next wave of features for our Java support and experience. Below is an outline of the features and improvements that are planned for our next several releases, which are targeted to be completed for mid-year 2018.
The Application Insights team believes that documentation is important to the overall successfulness of our users. As such, we strive to continually improve our documentation. The full list of documentation changes can be found in our issue tracker. Feel free to open a new issue to report incorrect or unclear documentation.
While our 2.0 SDK will provide full support for fixed rate sampling, we plan to add support for adaptive sampling. Adaptive sampling provides fine-grained controls over a variable sampling rate when traffic to an application fluctuates and finding a fixed rate to sample with would otherwise be difficult.
Support for Java 9
The Application Insights for Java SDK currently supports Java 7 and 8. We are working to bring full support for customers who have upgraded their applications to Java 9 as well.