Stage 4 · Assumes you can code · Evals & Quality
Observability: Traces, Versions & Cost
If you cannot see spans, prompt versions, and dollars, you cannot debug or eval in production.
Offline evals tell you whether a change is safe to ship. Observability tells you what actually happened for a real user at 4:12 p.m. — which prompt version ran, which tools fired, how long each span took, and what it cost.
Treat each request as a trace: a tree of spans (gateway → prompt build → model call → tool → model call → response). Trajectory evals in the previous lesson score a path. Traces are how you record that path in production, with IDs you can join to eval cases later.
Without traces, a $47 daily spike is a vibe: maybe one customer pasted a PDF, maybe an agent looped 40 times, maybe you shipped hr-bot@v3.4 with a 6,000-token system prompt and no cache. You cannot tell.