Application Insights for Java

Build & Unit Tests Smoke Tests
Build + Unit Tests Smoke Tests

Introduction

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:

The following packages are built in this repository:

  • Base API and channel: applicationinsights-core
  • Web applications instrumentation: applicationinsights-web
  • Application Insights SpringBoot Starter: applicationinsights-spring-boot-starter
  • Logback adaptor: applicationinsights-logging-logback
  • Log4J 2 adaptor: applicationinsights-logging-log4j2
  • Log4J 1.2 adaptor: applicationinsights-logging-log4j1_2

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

  1. If you specified a particular version number in pom.xml or build.gradle, update it.
  2. Refresh your project's dependencies.

Otherwise

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.

Documentation Improvements

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.

Adaptive Sampling

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.

Microsoft Open Source Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.