Interview Prep/Monitoring & Observability/Tracing and OpenTelemetry

A checkout request takes 4 seconds. Walk through how you use a trace to find the cause.

BeginnerScenarioTracing and OpenTelemetry
Answer

Situation read → You have the trace; the job is to read the waterfall.

What I'd do →

  1. Open the trace in Tempo/Jaeger and look at the critical path: which spans are sequential and long.
  2. Check for gaps between spans (uninstrumented work, queueing, GC pauses).
  3. Look for N+1 patterns: dozens of short repeated DB or HTTP spans.
  4. Read span attributes: db.statement, http.response.status_code, retries, error events.
  5. Jump to logs for that span via trace ID, and to metrics (pod CPU) at that time.

Why → The waterfall shows where time is actually spent, not where you guess it is.

Interview tip → Mention "N+1 queries" and "serial calls that could be parallel" as common findings.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing and OpenTelemetry