← Table of Contents · Page 277 of 868
WHY OBSERVABILITY MATTERS
Part 1 of 10
LEARNING GOALS
By the end of this chapter you will be able to define observability, explain why input-output logging is not enough for agents, and describe how to turn production failures into targeted improvements.
WHAT OBSERVABILITY MEANS
Observability is the ability to understand what is happening inside a system by looking at the signals it sends outward.
Think of a car dashboard.
You cannot see the engine, but the speedometer, the fuel gauge, and the warning lights tell you what the engine is doing.
An observable agent sends out similar signals, such as records of each model call, each tool call, the time each took, and any errors.
Without these signals, an engineer facing a failure can only guess.
WHY INPUT-OUTPUT LOGGING IS NOT ENOUGH
The simplest record is the input and the output, meaning what the user asked and what the agent answered.
For an ordinary program this is often enough, because the steps in between are fixed and known.
An agent is different.
Between the question and the answer it may make a dozen tool calls, read many documents, change its plan, and retry things.
If the final answer is wrong, the question and the answer alone do not show which middle step went wrong.
It is like a student handing in only the final result of a long math problem.
The teacher sees that the answer is wrong but not whether the mistake was in step two or step nine.
Observability tools capture the middle, so the exact step can be found.
Advertisement
Read Aloud:
0:00 / 0:00