Skip to content

Update java.md to include the details about auto trace injection #29596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions content/en/logs/log_collection/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ writer.field.dd.env = {context: dd.env}
{{< /tabs >}}

#### Inject trace IDs into your logs
<div class="alert alert-info">Starting in Datadog Agent version 0.74.0, the Java tracer automatically injects trace correlation identifiers into JSON formatted logs. For earlier versions, enable automatic injection in the Java tracer by adding <code>dd.logs.injection=true</code> as a system property, or through the environment variable <code>DD_LOGS_INJECTION=true</code>. Full configuration details can be found on the Java tracer configuration page.</div>

If APM is enabled for this application, you can correlate logs and traces by enabling trace ID injection. See [Connecting Java Logs and Traces][3] for more information.

Expand Down
Loading