diff --git a/content/en/logs/log_collection/java.md b/content/en/logs/log_collection/java.md index 914502da97083..72db31ccae2c1 100644 --- a/content/en/logs/log_collection/java.md +++ b/content/en/logs/log_collection/java.md @@ -241,6 +241,7 @@ writer.field.dd.env = {context: dd.env} {{< /tabs >}} #### Inject trace IDs into your logs +
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 dd.logs.injection=true as a system property, or through the environment variable DD_LOGS_INJECTION=true. Full configuration details can be found on the Java tracer configuration page.
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.