Skip to content

Resource · Guide or article

Observability in Microservices

Explains why errors get lost between microservices and how to propagate trace context in HTTP headers so telemetry from each service can be joined. Backend and SRE candidates can use it to prepare for distributed tracing questions in microservice design discussions.

Reviewed

Open the original: Observability in Microservices (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

Microservices is a very popular software architecture, where the application is arranged as a collection of loosely coupled services. Some of those services can be written in different languages by different teams.

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

  • The problem: a downstream service returns a 500 and the caller cannot link it to its own correlation ID
  • The four identifiers a tracing system exposes per request: RequestId, SpanId, TraceId and ParentId
  • A walkthrough of services A, B and C passing trace-id and parent-id headers
  • References to W3C Trace Context, B3 propagation and OpenTelemetry

How to use it

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

Draw three services calling each other and label which IDs stay constant across the whole request and which change per hop. Compare your drawing with the W3C Trace Context spec, then explain the difference between a trace and a span aloud.

Scope and limitations

Team guidance, not interview prep. In the A-to-C walkthrough each service creates a new trace-id and uses the caller's trace-id as its parent, which does not match the page's own definition of ParentId as the parent span, so verify against the spec before repeating it.

Access and format

Web page on microsoft.github.io from Microsoft's Code-With Engineering Playbook. English, free, CC BY 4.0.

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

Evidence behind this overview
  • docs/observability/microservices.md

Pages that include this

Get the PrepKit newsletter

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

How we handle your email