Skip to content

Releases: DataDog/dd-trace-java

0.3.0.RC2

24 Jan 17:53
Compare
Choose a tag to compare
0.3.0.RC2 Pre-release
Pre-release

Priority Sampling
Priority sampling is a new feature for sampling traces. #192

Bugfixes

  • Log exceptions to datadog debug log instead of stderr #196
  • Defend against NPEs in Spring Instrumentation #195

Internal Changes

  • Test Java 7 and 9 in CI #201

0.3.0-RC1

18 Jan 19:05
Compare
Choose a tag to compare
0.3.0-RC1 Pre-release
Pre-release

Breaking changes

  • Deprecated dd-trace.yaml config has been removed. Going forward, config must be done using environment variables or system properties (#183)
  • Artifact names have changed: (#184)
    • dd-trace -> dd-trace-ot
    • dd-trace-annotations -> dd-trace-api
  • Package names have been standardized: (#184)
    • datadog.trace
    • datadog.opentracing
  • OpenTracing bindings have been upgraded to 0.31.0. If you need support for 0.30.0, consider using the compatibility layer (#126)

Bugfixes

  • Prevent ClassNotFoundException by ensuring consistent load order of helper classes. (#187 #190 #194)

Migrate from 0.2.x to 0.3.0-RC1

  • If you're only using dd-java-agent then you only need to migrate your configuration. Reference your dd-trace.yaml file and set the appropriate environment variables or system properties according to your application server. System properties can usually be set along side the javaagent flag.
  • If you're using the @Trace annotation, you will need to:
    • Update the artifact name in your gradle or maven config
    • Replace package names from import com.datadoghq.trace.Trace to import datadog.trace.api.Trace
  • If you're using the OpenTracing bindings, you'll need to update how the DDTracer is created. Instead of using DDTracerFactory, you should call a DDTracer constructor directly. Alternatively, you could consider using TracerResolver.

For example:

Tracer tracer = DDTracerFactory.createFromConfigurationFile();
io.opentracing.util.GlobalTracer.register(tracer);

Would change to:

Tracer tracer = new DDTracer();
io.opentracing.util.GlobalTracer.register(tracer);

For assistance migrating manual instrumentation, please contact support.

0.2.12

03 Jan 17:26
Compare
Choose a tag to compare
0.2.12 Pre-release
Pre-release

Known Issues

  • This release is a bit picky about overriding default configs. This will be resolved in the next release, but for now:
    • To override host or port, you must specify the type, host, and port, otherwise it won't work and fall back to the default.
  • For systems using non-system classloaders (for example Spring Boot Executable Jars), there is a problem with some helpers that presents as a ClassNotFoundException.

Improvements

  • Configure the Java Client with system properties and environment variables (#178)
    • NOTE: Beginning with this release, YAML config is deprecated and will be removed in the next release.
    • Please migrate config using Java Client Config Documentation before updating further.
  • Enhance servlet Instrumentation
    • Include Servlet Filters in timing (#179)
    • Fix Jersey bypassing instrumentation (#175)

Internal Changes

  • Support helper classes in instrumentation modules (#174)
  • Spock Instrumentation Test Framework (#177)
  • Improve CI report gathering (#176)
  • Fix types for Intellij (#181)
  • Better support for eclipse+buildship (#173)
  • Integration benchmarks for Jetty (#180)

0.2.11

11 Dec 18:05
Compare
Choose a tag to compare
0.2.11 Pre-release
Pre-release

Improvements

  • Enhance support for SpringBoot classloaders (#168, #171)
  • Better support getting connection info for proxy connections (e.g. c3p0) (#169)
  • Reduce classloading time and add jmh benchmarks (#172, #163)

Internal Changes

  • Byteman removed from the agent (#167)
    • Apache HTTPClient migrated to ByteBuddy (#161)
    • OK Http migrated to ByteBuddy (#166)
  • Better naming for agent threadpools (#164)
  • Update gradle wrapper to latest version (#162)
  • Fix mongo module compilation for idea (#170)

0.2.10

01 Dec 19:38
Compare
Choose a tag to compare
0.2.10 Pre-release
Pre-release

Improvements

  • Support for JMS 1 (#156)
  • Support for Mongo Async Driver (>= 3.3). (#154)
  • Add documentation for error reporting. (#158)

Major Changes

  • Instrumentation migrated from byteman to bytebuddy to improve performance and stability. This is an internal change and does not affect supported instrumentation versions.

0.2.9

13 Nov 20:53
Compare
Choose a tag to compare
0.2.9 Pre-release
Pre-release

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

01 Nov 22:28
Compare
Choose a tag to compare
0.2.8 Pre-release
Pre-release

Improvements

  • Apply rate limiting to connection failure log messages when trying to send data to DD Agent. ( #147 )

Bugfixes

  • Prevent a NullPointerException from the new JDBC instrumentation released in 0.2.7 caused by a null URL connection string. ( #146 )

0.2.7

30 Oct 22:18
Compare
Choose a tag to compare
0.2.7 Pre-release
Pre-release

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

16 Oct 12:16
Compare
Choose a tag to compare
0.2.6 Pre-release
Pre-release

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

28 Sep 04:31
Compare
Choose a tag to compare
0.2.5 Pre-release
Pre-release

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.