Introducing Application Insights Java SDK 2.5.0-BETA! This release introduces some very exciting changes to the agent and adds support for the latest versions of Java!
Enhancements
SDK-wide
- Added Java 9/10/11/12 support
- Introduced new jar,
applicationinsights-web-auto.jar
, which automatically registers the web filter. No need to modifyweb.xml
or add@WebFilter
. - Simplifies role name configuration by adding
<RoleName>
tag inApplicationInsights.xml
.
New Agent Features
- Generic JDBC driver support: captures JDBC queries for all JDBC drivers.
- Automatically captures dependencies for async requests by tracking the request across multiple threads.
- Agent now captures application logging from Log4j 2/1.2 and Logback.
- This removes the need to add the
applicationinsights-logging-*.jar
dependency and modify the application's logging configuration.
- This removes the need to add the
- Improved HTTP client support:
java.net.HttpURLConnection
- Apache HttpClient 3.x
- OkHttp3
- OkHttp2 now supports distributed tracing
- Sets
Operation Name
automatically based on Spring@RequestMapping
, JAX-RS@Path
and Struts action class/method name.- This removes the need for
RequestNameHandlerInterceptorAdapter
or other interceptors.
- This removes the need for
- Agent now supports multiple applications deployed in the same application server (temporarily in the 2.4.0)
- Simplified JBoss and Wildfly deployment when using the agent: no need for workarounds using
jboss.modules.system.pkgs
,java.util.logging.manager
,-Xbootclasspath
Removed/Deprecated
- Removed support for
<Class>
custom instrumentation inAI-Agent.xml
- Removed support for
<RuntimeException>
custom instrumentation inAI-Agent.xml
Miscellaneous
- Starting with this release, you can now find the agent and the collectd plugin on Maven Central as
applicationinsights-agent
andapplicationinsights-collectd
under the same group,com.microsoft.azure
.