Definition
Trace correlation connects spans within a distributed operation and links those spans to other telemetry.
Signals
Why use it
Find which dependency contributed to a slow or failed request.
Common use cases
- Investigate cross-service latency.
- Connect spans to logs.
- Inspect downstream failures.
Benefits
- Shows execution context and dependencies for recorded requests.
Limitations
- Sampling, missing instrumentation, and broken propagation can produce partial traces. A span error does not by itself identify the root cause.
Practical pattern
Propagate context across HTTP and messaging boundaries. Preserve service attributes and configure links to related log data.
Worked example: Follow recorded execution
A checkout trace includes a payment client span and a downstream server span. Their parent relationship connects recorded work; a queue consumer may instead link from a separate trace.
What makes this concept different
A trace is execution evidence for recorded operations, not a complete inventory of all requests.
Supported by
Documented examples, not an exhaustive compatibility list. Features require suitable instrumentation and configuration; availability can depend on the runtime, backend, and subscription.
- OpenTelemetry — Propagated context connects spans across services.
- Grafana with Tempo and Loki — Span-to-log links add error details to a trace investigation.
Related concepts
Investigation patterns
- Metrics to Traces
- Services to Dependencies
- Trace to Profiles
- Service to Database
- User Session to Backend Trace
- Queue Producer to Consumer
Related guides
- What is Observability?
- What is MTTR?
- OpenTelemetry: Logs to Traces in Python
- Grafana: Metrics to Traces with Exemplars
- OpenTelemetry: Queue Context, Retries and Batches
- Troubleshoot: Log Trace ID Not Found
- Troubleshoot: Exemplars Missing in Grafana
- Troubleshoot: Trace Context Lost in a Queue
FAQ
Does a trace capture every request?
Only when collection and retention policies allow it. Sampling and export failures can remove requests or spans.