Releases: DataDog/dd-trace-java
0.2.11
0.2.10
0.2.9
Improvements
- Significant reduction to agent classload cost by changing the framework used for instrumentation. (#148)
- Safer integrations by preventing errors in integrations from bubbling up. (#148)
Bugfixes
- Handle a potential null pointer exception in cases where the SQL query isn't available. (#149)
- Fix the mongo integration query sanitization. (#152)
Read the full changeset
0.2.8
0.2.7
Improvements
- JDBC drivers are automatically traced now. Manual changes to add
opentracing-contrib/java-jdbc
and modifying the jdbc url are no longer required. (#141) - Better resource naming for Spring Web based applications. Resource is now named after the pattern used to map the controller instead of the URL. These patterns are typically defined using annotations such as
@RequestMapping
. (#144) - Improve matching performance when using the
@Trace
annotation. This also has the benefit of finding classes with@Trace
not available on the system classpath. (This especially applies to Spring Boot apps deployed as an executable jar.) (#143) - Headers provided to
DDTracer.extract
are now discovered case-independent even if the map provided is case-sensitive. (#145)
Bugfixes
- Downgraded to a non-beta version of byteman in attempt to resolve a performance degradation in some cases running Tomcat. (#142)
Read the full changeset
0.2.6
Improvements
- Errors reported are now properly captured and sent along with the trace (#139). This is done primarily as follows:
ActiveSpan span = GlobalTracer.get().activeSpan();
span.log(Collections.singletonMap("error.object", new RuntimeException("some error")))
Bugfixes
- fixed
IllegalAccessError
that was being thrown in some cases where classes were loaded on multiple classloaders (#137).
Breaking Changes
- tags names used in our OpenTracing compatibility layer have been changed to make them consistent with other OpenTracing tags (#140). If you have:
span.setTag('service-name', 'intake')
span.setTag('resource-name', 'GET /api/v1/')
You should change that to:
span.setTag('service.name', 'intake')
span.setTag('resource.name', 'GET /api/v1/')
Read the full changeset
0.2.5
Fix distributed tracing headers to be compatible with other datadog APM clients.
Previous headers were not consistent with other clients. This release should properly propagate for distributed tracing.
0.2.4
Support for Servlet 2.3+ compatible Application Servers
The previous integration that was written for Jetty and Tomcat has been replaced with general instrumentation for application servers that follow the servlet spec. This includes things like Tomcat, Jetty, Websphere, Weblogic, JBoss, etc.
0.2.3
Improved compatibility of dd-java-agent co-existing with dd-trace
Internal classes of dd-trace
inside dd-java-agent
are dynamically modified using shadow. This created a problem with previous versions when dd-trace
also existed on the classpath separately. The classloader could find the same classname in multiple different jars, but with different classes. These internal versions of classes from dd-trace
now have a different package name and should not cause this conflict.
Fixed NPE in Servlet Context Helpers
If JettyServletHelper
or TomcatServletHelper
were triggered more than once, or there happened to already be a filter registered with the name tracingFilter
, the helper would throw a NullPointerException
. This registration process is now properly handled by checking registration first and checking for null before continuing.
0.2.2
Fixed integration with custom classloaders
Internal classes used for the purpose of integrations are now loaded on the classloader where the integration is applied. This allows for support of applications running with non-standard classloaders such as Spring Boot's executable jar classloader.
Logging has been changed to use an internal SLF4J implementation that is scoped to just dd-java-agent
. The result is agent logs are piped to STDERR
. This fixes the lack of logging for executable Spring Boot jars. Configure the log level with the following property -Ddd.slf4j.simpleLogger.defaultLogLevel=debug
.