freecoding.school100% FREE · NO SIGNUP
Gateway RidgeISSUE #19 of 35

tracing · opentelemetry · spans

Gateway GusVSTimeout Titan
Gateway Gus saysDistributed tracing follows one request across services using spans and a shared trace id.

A single user request may touch a gateway, three services, and a database. Tracing stitches these into one timeline: each step is a span (with start/end and metadata), all sharing a trace id propagated via headers. The result shows exactly where latency accrued and which hop failed — indispensable for debugging microservices. OpenTelemetry is the standard.

Power-ups you unlock

Timeout Titan attacks — common mistakes

Boss battleExplain how a trace id reveals which service caused a slow request.

Example code

<!doctype html><html><head><meta charset="utf-8"></head>
<body style="background:#06040d;color:#e6e0ff;font-family:monospace;padding:20px"><pre>trace abc123:
  gateway   2ms
  users-svc 8ms
  db query  410ms  ← the slow hop
  total     420ms</pre></body></html>
▶ Open the interactive comic issue
‹ Observability · Logs · Metrics · TracesMetrics · Histograms · Counters · Gauges ›