Skip to content

Resource · Guide or article

Correlation IDs

Explains correlation IDs, a unique value attached to the first request in a transaction and passed to every downstream service so logs can be stitched together. Backend and SRE candidates can use it when asked how they would debug a request that crosses several microservices.

Reviewed

Open the original: Correlation IDs (opens the original site in a new tab)

Practice this topicOpens the practice interviewer in System design mode; choose a question there.

Add to a roadmap

Keep this resource with a roadmap you follow. It appears as your own extra resource; the roadmap's steps don't change and it doesn't count toward your tracked steps.

Source content: English

In a distributed system architecture (microservice architecture), it is highly difficult to understand a single end to end customer transaction flow through the various components.

PrepKit overview

PrepKit editors wrote and reviewed this overview from the source repository. It is not text from the resource itself.

Suited to
The source does not state a level
Format
Article

What it covers

  • Problems it solves: following one request end to end, aggregating logs, untangling async and cyclic calls
  • Seven practices: assign early, propagate downstream, log it everywhere, pass it in an HTTP header, return it in responses, add session or user IDs where needed
  • Use cases in log correlation, secondary reporting systems and troubleshooting, with OpenTelemetry's TraceId as a ready-made option

How to use it

PrepKit study advice, not a claim made by the source.

Trace one request through a system you worked on and mark where a correlation ID is created, which header carries it and where it is logged. Then describe how you would debug with it in under a minute.

Scope and limitations

A short concept page written for teams, not interviewers, with no code. The tooling note points to Azure Application Insights auto-collection.

Access and format

English page on microsoft.github.io, free to read; text from Microsoft's CC BY 4.0 Code-With Engineering Playbook repository.

Reviewed by PrepKit on Oct 2, 2026. Listing source commit: 016770e43d8a

Evidence behind this overview
  • docs/observability/correlation-id.md

Pages that include this

Get the PrepKit newsletter

Optional. You don't need it to use PrepKit.

How we handle your email