Skip to content
StackDecode
System Design
11. Microservices Architecture17. Observability and MonitoringAnimated

Distributed Tracing

Following one request across services.

The idea

A trace id passes through every call, and spans record timing for each hop.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

AppsCollectorMetrics (Promet…Logs (Loki)Traces (Tempo)Dashboards
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Apps emit metrics, logs and traces.

step:
1/4
at:
Apps
1/9

The green dot is a request moving through the system.

Step by step

  1. 1Create a trace id at the edge
  2. 2Pass it in headers
  3. 3Each service records spans
  4. 4A collector assembles the trace

Where it is used

Debugging latency.

Watch out for

Sampling hides rare problems.

Related