The correlation between Datadog APM and Datadog Log Management is improved by automatically adding a
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: