Skip to content
Clairos Learn

Observability and tracing · Lesson 7 of 15 · 5 min

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.

Mastery 0/3Run itExplain itApply it
learner@clairosSimulated AI Ops lab
learner@clairos:~ $
↑ history · Tab complete · Ctrl+C cancel · Esc, Tab to leaveExit 0

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.json
700

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.

Try a variation

Name the assumption that would have to change for “investigate-retrieval” to stop being the justified action. Do not silently replace missing evidence with a guess.

Explain it

What does the evidence in “Find a slow span” justify?

Apply it elsewhere

A colleague concludes: “Inference must dominate because the application uses a model.” What should you do?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: Connect logs and tracesTry an incident drill

Anonymous 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

  1. 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
  2. 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
  3. 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