Traces show 800 ms of "missing time" between two spans in the same service. What could it be?
AdvancedScenarioTracing and OpenTelemetry
Answer
Situation read → Time spent in uninstrumented work or waiting.
What I'd do →
- Check for uninstrumented code: CPU-heavy loops, serialization, local file I/O.
- Check GC pauses (JVM
jvm.gc.duration, Go GC metrics) at that timestamp. - Check CPU throttling:
container_cpu_cfs_throttled_periods_total. - Check thread pool or connection pool waiting.
- Use continuous profiling (Pyroscope, Parca) linked to the span to see the stack.
Why → Gaps are evidence of work you cannot see; profiling fills the gap.
Interview tip → Mention span profiles (trace-to-profile) as the modern answer to "missing time".
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?AdvancedA checkout request takes 4 seconds. Walk through how you use a trace to find the cause.BeginnerYour OpenTelemetry Collector is getting OOMKilled under load. How do you stabilise it?Intermediate