# Agent observability

Agent observability is being able to answer what an agent did, and why, from the data it
already emits, without shipping new code to find out. For an agent, that data is a trace of
each run: the input, every model call with its prompt and response, every tool call with its
arguments and result, and the tokens, latency, and cost of each step.

It exists because agent failures are hard to predict. Monitoring watches metrics someone chose
in advance, such as error rate or latency, and alerts when one crosses a threshold. That
catches the failures you expected. An agent can take a different path on the same input, call
the wrong tool with valid arguments, or return a fluent wrong answer with no error at all, and
none of those moves a predefined metric. Observability is what lets you ask a new question
about a failure after it happens.

The data comes from instrumentation: code in the agent or its framework that records each step
as a span and groups the spans of one run into a trace. OpenTelemetry defines semantic
conventions for generative AI, so model calls, agent steps, and tool executions can be
recorded in one common format and sent to any backend that accepts it. Stored traces can then
be searched, compared across releases, and fed to evaluations.

Observability data shows what happened, not whether it was right. A trace of a wrong answer
looks like a trace of a right one until something judges it. Traces also carry prompts, user
inputs, and tool outputs, which often include personal or confidential data, so where they are
stored and who can read them is part of the design.

---

Source: https://tessary.ai/answers/agent-observability
All concepts: https://tessary.ai/answers
From Tessary, agent reliability for AI agents in production: https://tessary.ai
