Connect Logs and Traces
Datadog's Research Report: The State of Serverless Report: The State of Serverless

Connect Logs and Traces

The correlation between Datadog APM and Datadog Log Management is improved by automatically adding a trace_id and span_id in your logs with the Tracing Libraries. This can then be used in the platform to show you the exact logs correlated to the observed trace.

Before correlating traces with logs, ensure your logs are either sent as JSON, or parsed by the proper language level log processor.

Your language level logs must be turned into Datadog attributes in order for traces and logs correlation to work. Select your language below to learn how to automatically or manually connect your logs to your traces:

On this Page