Prompt
How do I find the slow microservice from a trace
Latest observation
Oct 28, 2026
OpenAI APIWeb search: off
To find the slow microservice from a distributed trace, look for the span that contributes the most time to the overall request. A good way to do this is:
-
Find the root trace
- Open the trace for the slow request.
- Check the total trace duration.
-
Inspect the span waterfall / Gantt chart
- Look at each service span and its timing.
- The slow microservice is often the one with the longest span duration or the one that causes the largest gap in the trace.
-
**Check for:
- Long self time: a service spends a long time doing work internally.
- Long child spans: the service may be waiting on downstream calls.
- High latency between spans: indicates queueing, retries, thread starvation, or network delays.
-
Compare critical path
- The “slow” service is not always the one with the longest total duration.
- It’s often the span on the critical path — the chain of dependent spans that determines the total latency.
-
Look for error/retry patterns
- Retries, timeouts, and repeated downstream calls often make one service appear slow.
- A service with many short spans can still be the bottleneck if it fans out or retries.
-
Correlate with metrics
- Use service metrics like:
- p95/p99 latency
- error rate
- CPU/memory saturation
- request queue length
- This helps confirm whether the trace issue is isolated or systemic.
- Use service metrics like:
Quick rule of thumb
- Longest span on the critical path = likely bottleneck.
- Largest internal “self time” = service doing slow work.
- Longest wait before downstream response = downstream dependency or network issue.
If you want, I can also show you:
- how to do this in Jaeger / Zipkin / OpenTelemetry,
- how to identify the critical path programmatically,
- or how to interpret a sample trace screenshot/log.