part III · chapter 13 of 17
Observability and tracing
Seeing inside an AI request in production: prompts, retrieval, model calls, tools, cost.
why it matters
Ordinary monitoring cannot tell you why an answer was wrong or expensive. This can.
before this: chapter 12, Evals and testing
being written
This chapter is being written. Here is what it will cover; until then, the full topic list is in our notes.
- structured logs per model, tool and prompt version
- traces and spans across the pipeline
- latency, time to first token, cost per request
- alerts, budgets, incidents
you reached the end of the chapter
build this
Trace one full request end to end and find where the time and the money go.
the maths underneath
maths note 10
Production numbers: percentiles, throughput, cost
Dashboards, budgets, routing and caching decisions are all these numbers.
check yourself
Tick what you could explain to someone else, out loud, without notes.