From the course: Monitoring and Observability with Datadog

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Correlating logs and APM metrics on Datadog

Correlating logs and APM metrics on Datadog - Datadog Tutorial

From the course: Monitoring and Observability with Datadog

Correlating logs and APM metrics on Datadog

- [Narrator] Datadog is a one pane of glass solution. This means that it brings different signals and events from applications and infrastructure, such that it's easy to correlate them within Datadog interface. If you remember correctly, when we set up our Datadog tracer, we included the log injection variable. This means that we were telling Datadog that our trace and span IDs should also be injected into our logs. If you take a look at our log file in the combined.log, you would notice that for each trace there's a span ID and trace ID. This helps Datadog correlate our logs and traces for easy correlation and identification. When you go into the Datadog logs view, you're able to see that beside the event attributes you can also see the trace that is responsible for that log. This means that when we eventually see how to create monitors, and we create monitors to alert us on APM traces, we can easily match our traces…

Contents