Definition
A correlation ID is an identifier attached to records that belong to the same request, operation, or workflow.
Signals
Why use it
Find every record for a failed checkout across service boundaries.
Common use cases
- Investigate customer requests.
- Follow background jobs.
- Join application logs.
Benefits
- Exact joins reduce ambiguous timestamp searches.
Limitations
- IDs must be propagated consistently. A custom request ID is not automatically a trace ID. Never use per-request IDs as metric labels.
Practical pattern
Generate an ID at ingress, validate incoming values, and include it in structured logs. Keep trace_id and span_id as distinct fields.
Worked example: Request identity versus workflow identity
One checkout request can have one trace ID while a payment workflow spans several requests and traces. Keep a separate workflow ID when investigating the whole payment.
What makes this concept different
Use exact request identifiers for request joins; use a business identifier only for the wider workflow it actually represents.
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 — Propagates trace context; applications can use the trace ID to connect records.
Related concepts
Investigation patterns
Related guides
- What is Observability?
- What is MTTR?
- OpenTelemetry: Queue Context, Retries and Batches
- Troubleshoot: Trace Context Lost in a Queue
FAQ
Is a correlation ID the same as a trace ID?
A trace ID identifies one distributed trace. A correlation ID may identify a broader business workflow spanning several traces.