AI Agent Observability: Traces, Evals and Production Alerts

Paweł Szczepanik
Paweł Szczepanik
November 23, 2026
•
8 min read
Loading the Elevenlabs Text to Speech AudioNative Player...

AI agent observability is the ability to reconstruct, score and act on what an agent did in production: every model call, tool call and handoff captured as one trace, each trace scored by evals, and a small set of signals wired to alerts someone owns. Monitoring an LLM endpoint tells you a request was slow or expensive. It does not tell you which step in a long chain sent the task the wrong way. It comes down to three decisions: what you record, how you grade it, who hears about it. The OpenTelemetry GenAI semantic conventions, which most vendors now emit, carry Development status as of November 2026, and their first standalone release, v0.1.0, opens with breaking changes. That is why AI agent observability has to be designed for attribute names that will change.

What AI Agent Observability Covers That LLM Monitoring Misses

Agent observability means that for any task an agent ran in production you can answer three questions from recorded data: what steps it took, whether the result was right, and who was told when it was not. An LLM endpoint answers one request. An agent runs a loop: the model picks its next step, calls tools and sometimes passes work to another agent. Google Cloud's documentation puts it plainly: "AI agents can drift, hallucinate, and regress silently." Six signals follow that an LLM dashboard does not show:

SignalQuestion it answersWhere it comes from
Steps per taskDid the agent loop or wander?Count of model calls inside one agent invocation
Tool calls and tool errorsWhich tool failed, and did the agent retry or give up?Tool execution spans with error type
Path takenWhich plan, which agent, in what order?Parent and child spans of one trace
Tokens per taskIs one task quietly getting more expensive?Token usage summed over the trace
OutcomeDid the task end in the right state?Eval result attached to the trace
Session contextIs this turn failing, or the whole conversation?Conversation ID shared across traces

An LLM dashboard reports tokens and errors per request. An agent needs all six, counted per task.

Whether a process step should get an agent at all, and how reliable agents are today, are questions for another article; this one assumes the agent is already running and asks what you can see of it.

Tracing: One Trace per Task, One Span per Decision

In AI agent observability the unit of analysis is the task, not the request. The GenAI agent span conventions name the operations agents perform: an invoke_agent span "when an LLM drives the control flow through tool calls," execute_tool for each tool call, and a planning span for "task decomposition."

Tools name the same objects differently. LangSmith says "you can think of a run as a span," and Langfuse "calls spans observations." A conversation is a thread in LangSmith and a session in Langfuse; in OpenTelemetry it is the gen_ai.conversation.id attribute.

Our rule is one trace per user task, one span for every model decision and tool call, and one conversation ID shared across traces. On top of that we add business attributes outside the gen_ai.* namespace: tenant, agent version, prompt version and task type. Alerts and evals filter on them. When one agent passes work to another, the transfer is a child span in the same trace, not a new trace; otherwise nobody can say later which agent broke the task.

That is why we treat tracing as the evaluation and observability layer of an agent architecture, designed with the orchestrator and tool layer, not bolted on after launch.

OpenTelemetry GenAI Conventions: Useful Today, Not Stable Yet

Most AI agent observability tooling now reads or writes this format. Amazon Bedrock AgentCore "emits telemetry data in a standardized OpenTelemetry (OTEL)-compatible format." Google Cloud builds agent views from trace data "that follow the OpenTelemetry GenAI semantic conventions." MLflow, Langfuse and Arize Phoenix document OpenTelemetry-based ingestion.

The names inside the format are still moving. As of November 2026, every GenAI convention document carries "Status: Development." The conventions also moved to their own repository; the old pages on opentelemetry.io now say "This page has moved." The new repository's v0.1.0 release starts with breaking changes, among them merging the workflow span into the agent invocation span and replacing gen_ai.workflow.name with gen_ai.agent.name. Three precautions follow:

  • Pin the convention version and the instrumentation library versions, and upgrade on purpose.
  • Build dashboards, alerts and evals on a thin naming layer of your own, a view or a mapping, instead of raw gen_ai.* names.
  • Keep business attributes in your own namespace, where no change to the standard can rename them.

An unsettled standard still beats none. The export protocol and the trace model are settled; only the GenAI names move, and a mapping layer absorbs that.

What to Capture, What to Sample, What to Mask

The first data decision in AI agent observability is what goes into a span besides structure. The GenAI conventions make content opt-in: capturing prompts, completions and memory records "is gated by an explicit user opt-in." The input messages attribute comes with a warning: "This attribute is likely to contain sensitive information including user/PII data." By default you get structure only: who called what, how long it took, how many tokens it used. You switch content on deliberately, per environment and task type, and mask it inside the application. Langfuse, for one, documents masking that runs "before trace data leaves your application."

As documented in November 2026, sampling defaults are generous. LangSmith logs all traces by default, Langfuse sets the default rate to 1, and MLflow to 1.0. When you must cut, the OpenTelemetry sampling guide warns: "you cannot ensure that all traces with an error within them are sampled with head sampling alone." Tail sampling decides after seeing the spans. Our rule: always keep traces with a tool error, a low eval score or an unusual step count, and sample the rest.

Retention can be a legal question. For high-risk AI systems, Article 12(1) of the EU AI Act requires that the system "technically allow for the automatic recording of events (logs)." Article 26(6) requires deployers of high-risk systems to keep those logs for at least six months, unless other law provides otherwise. Under Article 113, this applies from December 2, 2027 to high-risk systems in Annex III. Whether a given agent is high-risk is a separate question; either way, retention should follow purpose and law, not a tool default.

Evals on Traces: Grade the Path, Not Only the Answer

AI agent observability treats an eval result as part of the trace. Anthropic's guide to agent evals (January 2026) separates the transcript, which "is the complete record of a trial," tool calls and intermediate results included, from the outcome: "the final state in the environment at the end of the trial." An agent can report that a flight is booked; the outcome is whether the booking exists in the database.

The GenAI events conventions define gen_ai.evaluation.result, which should be parented to the span it grades. In Databricks production monitoring, which its documentation marks as Beta (October 2026), a sample of traces is scored and "Results are attached as feedback to each evaluated trace." AgentCore Evaluations and LangSmith's online evaluators score production traces with LLM judges.

A recorded trace is not a diagnosis. In the Who&When dataset (Zhang et al., 2025), built from failure logs of 127 multi-agent systems, the best method identified the responsible agent in 53.5% of cases and the decisive step in only 14.2%. On TRAIL (Deshpande et al., 2025), a set of 148 human-annotated traces, the best model tested scored 11%. These are benchmark results for specific models, and newer models may do better, but we still plan a weekly human review of sampled traces and write evals aimed at known failures instead of one general judge.

How to score a retrieval pipeline, and how far to trust an LLM judge, is covered in our guide to scoring retrieval and generation separately; the agent-specific part is that the path needs a grade as well as the answer.

Alerts: Which Agent Signals Deserve a Threshold

For alerting, AI agent observability adds signals that request-level monitoring cannot compute. The GenAI agent metrics define gen_ai.invoke_agent.duration, gen_ai.invoke_agent.inference_calls and gen_ai.invoke_agent.tool_calls, also in Development status, as histograms per agent invocation. Watch the distribution, not the mean: a looping agent shows up in the tail well before the average moves.

Built-in alerting covers part of this. LangSmith "provides threshold-based alerting" on five metric types: run count, cost, errors, feedback score and latency. AgentCore tracks "session count, latency, duration, token usage, and error rates." In the documentation we reviewed, these work on request or session metrics; a steps-per-task threshold usually has to be built from trace data. We start with four:

  • Model or tool calls per task above an upper percentile of a baseline period.
  • The error rate of each tool, not of all tools combined.
  • An online eval score below its baseline, computed over a window, never on a single trace.
  • Tokens per task rising while task volume stays flat, read as a symptom of a loop rather than as a bill.

Every threshold has a named owner, and every alert links to an example trace. Setting thresholds and routing alerts is standard model monitoring practice; the open question for agents is which signals deserve one. These four sit at the core of what we set up as an AI observability stack for LLM workloads, with SLOs and alerts.

The Order We Instrument an Agent

The order we use for AI agent observability follows what a team can act on first:

  • Structural traces for one agent: task, steps, tools, errors, tokens, conversation ID and your own business attributes.
  • A content decision: what may be recorded, what gets masked and how long traces are kept.
  • Two or three evals aimed at known failures, run on a sample of traces.
  • The four thresholds above, each with an owner.
  • A weekly trace review that turns new failures into test cases.

Only then do we add a second agent. We choose the backend last, because instrumentation in OpenTelemetry and evals kept in the repository make it replaceable. If an agent already runs in production, bring us one agent trace you cannot explain, and we will show what it is missing.

FAQ

What is AI agent observability?

It is the practice of recording every step an agent takes in production (model calls, tool calls, handoffs) as one trace per task, scoring those traces with evals, and alerting on a few agent-level signals. It differs from LLM monitoring in its unit: the task and its path, not a single request.

Are the OpenTelemetry GenAI semantic conventions stable?

No. As of November 2026 the GenAI conventions carry Development status, and their first standalone release, v0.1.0, lists breaking changes. Instrument with them anyway, pin the version, and keep dashboards and alerts on your own naming layer.

Should you trace every agent run or sample?

Trace everything while volume allows; LangSmith, Langfuse and MLflow all default to collecting every trace. When you must sample, head sampling alone cannot guarantee that traces with errors are kept, so keep failed, low-scoring and unusually long runs and sample the rest.

What is the difference between agent tracing and agent evaluation?

Tracing records what the agent did; evaluation judges whether that was right. A trace without an eval is an ungraded log; an eval without a trace is a score nobody can explain. In practice, eval results are attached to the trace they grade.

Share this post
AI Agents
Paweł Szczepanik
MORE POSTS BY THIS AUTHOR
Paweł Szczepanik

Curious how we can support your business?

TALK TO US

More insights

More news

No items found.