Hi! We're looking to add a correlation ID to our logs to help us debug issues and collect information from Datadog. Since we are already using OpenTelemetry for tracing, we already have a correlation ID: the trace ID. Unfortunately, not all traces are present in DD, as we sample incoming spans. Appending the trace ID value to the log attributes would help us at least find related events across services and pods by querying for @trace_id:<value>, grouping them, and so on.
What do you think?
Hi! We're looking to add a correlation ID to our logs to help us debug issues and collect information from Datadog. Since we are already using OpenTelemetry for tracing, we already have a correlation ID: the trace ID. Unfortunately, not all traces are present in DD, as we sample incoming spans. Appending the trace ID value to the log attributes would help us at least find related events across services and pods by querying for
@trace_id:<value>, grouping them, and so on.What do you think?