Find a slow span
Compare span duration with the total trace and distinguish sequential from overlapping work. A long span is a starting point for investigation, not automatic proof of CPU saturation.
Understand the pattern
Compare span duration with the total trace and distinguish sequential from overlapping work. A long span is a starting point for investigation, not automatic proof of CPU saturation.
Interpret the evidence
Investigate retrieval, which accounts for 700 of the 900 measured milliseconds.
A tempting mistake
Inference must dominate because the application uses a model.
All names, measurements, prices, versions, and thresholds in this exercise are fictional training data. The evidence supports this bounded scenario, not a claim about a live provider.
Worked example and expected result
$ cat /opt/ai-lab/cases/aiops-observability-tracing-007.json{
"fixture": "Fictional training data; not a live measurement.",
"total_ms": 900,
"retrieval_ms": 700,
"inference_ms": 150,
"validation_ms": 50
}Exit status: 0. The command completed successfully in the training fixture.
$ jq .retrieval_ms /opt/ai-lab/cases/aiops-observability-tracing-007.json700
Exit status: 0. The command completed successfully in the training fixture.
$ printf '%s\n' 'investigate-retrieval' > /home/learner/lab/aiops-observability-tracing-007-decision.txt(no output; exit 0)
Exit status: 0. The command completed successfully in the training fixture.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Connect logs and tracesTry an incident drillAnonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.
Keep learning
- 01Follow a request traceA trace follows one request through its spans. Use parent-child relationships and IDs so unrelated concurrent work does not get included in the incident path.Practice
- 02Connect logs and tracesLogs and traces correlate through stable identifiers, not approximate timestamps alone. Keep the relevant request and span identifiers in diagnostic events.Practice
- 03Inspect token metricsToken metrics help distinguish input growth from output growth. A cost or latency increase can follow a longer context even when the response length remains stable.Practice