Announcing Application Insights Java SDK 2.5.0!
There were no changes since 2.5.0-BETA.5.
Summary of Changes Since 2.4.x
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
- Added agent logging capture threshold, configurable via
<Logging threshold="warn" />
in theAI-Agent.xml
, with default thresholdwarn
(#1026)
Removed/Deprecated
- Removed support for
<RuntimeException>
custom instrumentation inAI-Agent.xml
Bug Fixes
- #969 Fixes ability to configure Live Metrics iKey programatically.
- #978 Possible NPE during development
- Fixed request telemetry displaying
200
response code for some failed requests (#810) - Fixed GC performance counters not working (#929)
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
.