0.3.0-RC1
Pre-release
Pre-release
·
16513 commits
to master
since this release
Breaking changes
- Deprecated
dd-trace.yamlconfig 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-otdd-trace-annotations->dd-trace-api
- Package names have been standardized: (#184)
datadog.tracedatadog.opentracing
- OpenTracing bindings have been upgraded to
0.31.0. If you need support for0.30.0, consider using the compatibility layer (#126)
Bugfixes
- Prevent
ClassNotFoundExceptionby 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-agentthen you only need to migrate your configuration. Reference yourdd-trace.yamlfile and set the appropriate environment variables or system properties according to your application server. System properties can usually be set along side thejavaagentflag. - If you're using the
@Traceannotation, you will need to:- Update the artifact name in your gradle or maven config
- Replace package names from
import com.datadoghq.trace.Tracetoimport datadog.trace.api.Trace
- If you're using the OpenTracing bindings, you'll need to update how the
DDTraceris created. Instead of usingDDTracerFactory, you should call aDDTracerconstructor 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.