Beginning with Dynatrace OneAgent v1.135, Dynatrace provides beta support for custom tracing in Java applications. We’re proud to announce that this valuable new functionality is made possible by the beta release of new Dynatrace OneAgent SDK.

Dynatrace OneAgent SDK for Java

To use the OneAgent SDK for Java, you’ll need access to the source code of the Java application you want to monitor. The SDK enables you to instrument your application manually. Remote call tracing is supported, and more functionality will be announced in the coming weeks.

Once you’ve compiled your Java application with the OneAgent SDK for Java, you can run it through your pipeline and deploy it. Instrumentation has no performance impact on your application and remains dormant on systems where Dynatrace OneAgent is not installed.

Integrating into your application

If you want to integrate the OneAgent SDK into your application, just add the following maven dependency:

The important thing here is that you need to transport the tag across the wire yourself.

Automatic detection and deep monitoring

Deploy your application on any Dynatrace OneAgent monitored system, or restart if it was already running at the time of the OneAgent installation. OneAgent will automatically detect that your application was instrumented with the SDK and will start monitoring it on a request level, just as it would do normally.

All things done with the SDK are fully compatible with our OneAgent. This means you will barely notice the difference between SDK and out-of-the-box functionality in the UI after you have completed the SDK instrumentation. You will see SDK instrumented remote calls in the form of RPC service services, and they will behave as any other service, with full access to all analysis and monitoring functionality. They will also be baselined and observed by Dynatrace AI during automatic problem analysis.

Those who know me know that I'm passionate about 3 things: rock climbing, physics, and performance.
I've worked in performance monitoring and optimizations in enterprise environments for the better part of the last 10 years. Now as a Product Manager I am doing my best to build those experiences into Dynatrace.