Est.

Guide

AI Agent Observability: What to Instrument, What to Alert On

An agent can return 200 on every call and still do the wrong job. This guide covers what to record in each agent run, how to judge it, and which signals should page a person.

The Incident Deck EditorsUpdated

What AI agent observability means

AI agent observability is being able to rebuild an agent run from its telemetry alone: what the agent was asked to do, what it decided at each step, which tools it called with which arguments, what came back, and whether the final result matched the request. If any of those can only be answered by re-running the agent and hoping it does the same thing twice, the system is not observable yet.

Application performance monitoring answers a narrower question: did the process run, how fast, and did it throw? That works for deterministic code, where a wrong answer almost always comes with an error. An agent can take a different path on the same input, and its worst failures complete cleanly. That is the gap covered in Alerting on Agent Behavior Instead of Exit Codes: the instrument built to ask "did it run?" cannot ask "did it do what it was supposed to do?"

Agent observability vs. LLM observability

LLM observability usually centres on a single model call: the prompt, the completion, token counts, latency and cost. Agent observability includes all of that and adds the loop around it: planning steps, tool calls, retries, retrieval, hand-offs between agents, and the state carried from one step to the next. Many agent failures live between calls rather than in any one of them, so a view of individual completions misses them.

Why APM and log search are not enough

  • Success codes hide wrong outcomes. An agent that invents an ID in step one and then calls three APIs with it gets three successful responses. Every span is green; the run is a failure.
  • The same input does not give the same path. You cannot assume a run that worked yesterday will take the same steps today, so one passing test says little about the next run.
  • The failure is semantic. Whether an answer is right, grounded, or within policy is a judgement about meaning. Grepping logs for errors cannot make it.
  • One incident shows up as many odd traces. A single root cause, such as a changed tool schema or a prompt edit, surfaces as dozens of slightly different traces that each look like their own problem.

The Incident Commander Cannot Triage What APM Was Never Designed to Capture and Intent-Aware Auditing vs. Log Aggregation for Production Agents go further into where existing tooling stops.

What to capture in every agent run

Instrument the run as one trace, with a span for each step. At minimum, a run should carry the following.

  • The intent. The user's request, the system instructions in force, and the task the agent was given. Without the intent there is nothing to judge the outcome against.
  • Model calls. Model name and version, request parameters, input and output tokens, latency, finish reason, and the messages in and out (subject to your redaction rules).
  • Tool calls. Tool name, the arguments the agent chose, the result returned, and the status the tool reported. Record the arguments, not just the call: a bad argument is often the first visible sign of a wrong plan.
  • Retrieval. The query, which documents or records came back, and their IDs, so you can tell a reasoning error from a retrieval miss.
  • Agent structure. Which agent ran each step, parent and child spans for sub-agents and hand-offs, and loop or retry counts.
  • Versions. Prompt version, model version, tool schema version and agent code version on every run, so a change in behaviour can be tied to a change you shipped.
  • The outcome. What the agent finally returned or changed in the world, plus any downstream signal: a user retry, an escalation to a human, a manual correction, a reversed action.
  • Run-level cost and latency. Totals for the whole run, not only per call, because a loop that quietly triples its steps shows up here first.

Prompts, tool results and outputs often hold personal or customer data. Decide what is redacted, what is kept in full, and for how long before you turn on full-content logging, not after an incident has already copied it into a ticket.

Use the OpenTelemetry GenAI conventions

OpenTelemetry publishes semantic conventions for generative AI, including spans for model calls, tool execution and agent operations. They define shared names such as gen_ai.operation.name (with operations like invoke_agent, execute_tool and chat), gen_ai.agent.name, gen_ai.request.model and gen_ai.usage.input_tokens.

Using them keeps your traces portable between backends and lets instrumentation libraries do much of the work. The conventions are still marked as in development, and attribute names have changed between releases, so check the current status in the OpenTelemetry GenAI semantic conventions repository before you build dashboards and alerts on specific names.

Turn traces into a judgement

Traces tell you what happened. Observability for agents also needs a signal for whether it was right. Layer it from cheapest to most expensive.

  1. Deterministic checks. Validate output schemas and tool arguments, enforce hard policy rules (an amount limit, an allowed-actions list), and confirm that an action the agent reported actually happened in the system it touched.
  2. Model-graded evaluation. Have a separate evaluator model score a sample of runs against the run's own instructions, for faithfulness, task completion and policy. How to Audit an AI Agent Against Its Own Instructions covers how to set this up.
  3. Human review. Label a small, regular sample by hand and use it to check that the evaluator agrees with people. An uncalibrated judge produces confident noise.

You will rarely be able to evaluate every run, so plan the sampling and know what your incident rate estimates can and cannot say. See Incident Rate Estimation When Agent Sampling Is Sparse.

Baselines, grouping and alerts

Behavioural signals only become alerts once you know what normal looks like. Track, per agent and per version: steps per run, the mix of tools called, loop and retry counts, refusal and escalation rates, and evaluation scores. Defining Normal Agent Behavior as an Observable Baseline walks through building one.

Connect it to incident response

Observability earns its keep when an alert leads somewhere. Each piece below assumes the telemetry above exists.

Questions to ask an agent observability platform

Features and pricing in this market change quickly, so treat this as a checklist to put to each vendor and confirm against their current documentation and pricing page.

  • Does it ingest OpenTelemetry (OTLP) traces, or only its own SDK?
  • Can it show a full run with nested agents, tool calls and retrieval in one view, including the arguments and results?
  • Can it run evaluations on live production traffic with your own criteria, and on a sample you control?
  • Does it group recurring failures into issues automatically, or leave clustering to the person on call?
  • Can alerts route into the paging and ticketing tools you already use?
  • What can be redacted before storage, where is data kept, and is self-hosting an option?
  • How is it priced (by trace, span, event, seat or evaluation), and what does that mean at your volume?

For platforms compared on how they group failures, see The Incident Commander's Shortlist of Platforms That Group Agent Failures Before the Page Goes Out.

A starting checklist

  1. Every agent run is one trace, with a span per model call, tool call and retrieval.
  2. Each trace records the request, the instructions in force, and prompt, model, tool and code versions.
  3. Redaction and retention rules are written down before full content is logged.
  4. Deterministic checks run on every run; model-graded evaluation runs on a sample, checked against human labels.
  5. There is a baseline per agent and version for steps, tool mix, retries, escalations and scores.
  6. Alerts fire on baseline shifts and score drops, and failing runs are grouped before anyone is paged.
  7. Each alert links to a runbook, and each incident adds its failing runs to the evaluation set.

Frequently asked questions

Is AI agent observability the same as LLM observability?

It builds on it. LLM observability looks at individual model calls: prompts, completions, tokens, latency and cost. Agent observability adds the steps around those calls, such as tool use, retrieval, retries and hand-offs between agents, and whether the whole run achieved what was asked.

Can I use my existing observability stack for agents?

Often for collecting and storing traces, if it accepts OpenTelemetry and handles large span attributes such as prompts and tool results. What existing stacks usually lack is evaluation of whether a run was correct and grouping of runs by failure cause. Check your vendor's current documentation for GenAI and agent support.

What should actually page a person?

A confirmed change in behaviour with impact: a shift from the baseline after a deploy, a drop in evaluation scores for a task, a group of runs failing the same way, or any run that breaks a hard policy rule. A single strange trace usually belongs in a review queue, not a page.

How much of each run should we log?

Enough to rebuild the run: the request, instructions, every model and tool step with arguments and results, versions, and the outcome. Decide redaction and retention for personal and customer data first, and keep full content only where your policies allow.

Go deeper