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 →
- Open the trace in Tempo/Jaeger and look at the critical path: which spans are sequential and long.
- Check for gaps between spans (uninstrumented work, queueing, GC pauses).
- Look for N+1 patterns: dozens of short repeated DB or HTTP spans.
- Read span attributes:
db.statement,http.response.status_code, retries,errorevents. - 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.
More on Tracing and OpenTelemetry
Your company has 30 microservices and no tracing. How do you roll out distributed tracing?IntermediateTraces stop at service B: you see spans from A, but B's spans start new traces. What is wrong?BeginnerTracing every request costs too much. How do you design sampling?IntermediateYou set up tail sampling with 4 Collector replicas, but traces are fragmented and error traces are missing. Why?AdvancedYour OpenTelemetry Collector is getting OOMKilled under load. How do you stabilise it?IntermediateHow do you trace a request that goes through Kafka from a producer to three consumers?Intermediate