Welcome to Application Insights Java SDK 2.0.2! This release fixes a number of issues posted on GitHub by the community and ourselves. It also includes a few enhancements to diverse areas. Details below.
Note: This release requires that the SDK be run on an application server supporting Servlet 3.0 or above.
Enhancements:
- Enable real-time SDK Logs when logging to file - #616
- Log messages are now being pushed as custom dimensions when exceptions are reported via log appenders - #400
- Enhanced Log4j2 appender to support basic parameters including Filters, Layouts and includeException - #348
- Support for configuring channel retries (MaxInstantRetries) in ApplicationInsights.xml
- Added the ability to have cold SDK initialization (no logs except critical logAlways messages)
- Code cleanup in the session tracking feature - #577
Bug Fixes:
- Fix incorrect success flag set when capturing HTTP Dependency.
- Fixed issue with sessionId not being set in request telemetry due to date parsing incompatibilities.
- Fix #609, fixes the inaccurate timestamp recorded with JMX Metrics.
- Fix issue when dependency start time was not being recorded correctly.
- Fixed #533 HTTP Dependency Telemetry now matches with .NET SDK.
- Fixed PageView telemetry data not being reported.
- Fixed Issue #526 (NPE in MapUtil.copy()).
- Fixed Issue #513 (Memory leak in SDKShutdownActivity). This fix upgrades our Servlet version from 2.5 to 3.0. The SDK must now be run on an application server supporting Servlet 3.0.
- Fixed Issue #504 (SDK initialization happens twice) to improve startup performance.
API changes (back-compatible):
- Introduced public method
httpMethodFinishedWithPath(String identifier, String method, String path, String correlationId, String uri, String target, int result, long delta)
to support instrumentation of Path of URI in HTTP requests. httpMethodFinished(String identifier, String method, String correlationId, String uri, String target, int result, int delta)
is now marked as deprecated