Correlation ID
Also called: request ID, trace ID, request correlation
A correlation ID connects messages or records belonging to the same exchange or operation. A request/response protocol may echo a request ID; a distributed tracing system propagates trace context across services. The identifier’s meaning and propagation rules are part of the chosen protocol or application convention.
A checkout request passing through an API, inventory service and payment service can keep one trace ID while individual spans receive different IDs. Engineers can then find the related records together. A correlation identifier is not an authorization credential or an idempotency key: matching two records does not permit access or suppress duplicate effects.
- Related
- JSON-RPC, Idempotency key, HTTP headers
- Further reading
- W3C — Trace Context