all posts

AI agent observability: how to monitor agents in production

A practical guide to the telemetry, evaluations and conversation turns behind an AI agent in production. Including the failures that return no error.

Guide 18 min read Updated
A production conversation passing through execution telemetry, evaluation, and user outcome turns. ONE PRODUCTION CONVERSATION PROMPT TOOL CALLS RESPONSE PERSON TRACE what ran? latency · errors · cost EVALUATION was it acceptable? quality · safety · drift EXPERIENCE did they finish? task · intent · replay Production observability needs all three readings.

What is AI agent observability?

AI agent observability should tell you what the agent did and whether the person finished. It connects execution data, evaluations, safety events, and the outcome of the conversation.

That last clause matters. A conventional service usually tells you it failed with an exception, a timeout, or a bad status code. An agent can finish every call and return HTTP 200. It can still misunderstand the request, choose the wrong tool, omit half the source material, loop through clarifications, or produce an answer the person cannot use.

You need three views of the same interaction.

The production observability stack

three questions
executionDid the run work?

Traces, spans, prompts, responses, tool calls, state transitions, handoffs, latency, tokens, cost, retries, and errors.

evaluationWas the behaviour acceptable?

Correctness, groundedness, policy checks, eval rubrics, regression tests, human review, and release comparisons.

experienceDid the person finish?

Task completion, intent-level stops, repetition, clarification, abandonment, cohort differences, and the exact turn underneath each pattern.

Each view catches a different failure. You need all three.

Most AI agent observability tools start with execution and evaluation. Those views help engineers debug runs and validate releases. Customer-facing agents also need conversation analytics and replay.

The short version

  • Use traces to reconstruct what the system did.
  • Use evaluations and eval rubrics to test whether behaviour meets a defined standard.
  • Use conversation analytics and replay to see what users tried, where tasks stopped, and which people or cohorts keep hitting the same failure.
  • Connect all three with stable conversation, user, version, and task identifiers so an aggregate can lead back to the turns and run records.

A green run can still end with a person leaving empty-handed.

How is agent observability different from regular monitoring?

AI observability vs. traditional observability

The distinction in AI observability vs. traditional observability comes down to non-determinism. Traditional observability (APM, Datadog, Prometheus) monitors deterministic software: CPU utilisation, memory pressure, HTTP status codes (200 vs 500), and network latency. If a database query fails or a microservice times out, a stack trace is logged and an alert fires.

AI observability monitors systems where execution paths are dynamic and probabilistic. An agent orchestrating multi-step workflows with tool calls can execute flawlessly from an infrastructure standpoint. It logs zero unhandled exceptions, consumes normal token volumes and returns HTTP 200 OK in 350ms. Meanwhile it delivers an incomplete response or silently drops the customer’s second request. Traditional observability verifies whether the code ran. AI observability must verify how the agent reasoned, which tools it invoked, and what context was passed between turns.

swipe to compare
DimensionTraditional serviceAI agent
Execution pathMostly known in advanceBranches across models, tools, memory, retries, and handoffs
Failure signalException, timeout, 4xx or 5xxOften a plausible response with no technical error
Unit to inspectRequest or transactionRun, conversation, task, user, and cohort
QualityUsually implied by successful executionMust be assessed separately from execution
What changesCode and infrastructureCode, model, prompt, retrieval, tools, memory, policy, and data
Useful recordsLogs, metrics, tracesTelemetry plus evaluations, conversation context, user outcome, and replay

The failure modes are different too

loud
Operational failure

A tool errors, a model call times out, or the orchestration loop crashes. Traces and alerts should catch it.

silent
Semantic failure

The agent returns a fluent but wrong, incomplete, or unsupported answer. Evaluation or human review is needed.

partial
Task failure

The agent completes some intents and skips another without reporting it. The run looks successful; the user’s task is not.

hidden
Segment failure

The overall rate looks stable while one plan, region, agent version, or returning-user cohort gets materially worse.

slow
Behavioural drift

Nothing breaks at once. More people repeat themselves, abandon, or require clarification after a model, prompt, or data change.

A single quality score hides the work. It can show that a detector moved. It cannot show which task changed, where people stopped, or what they said. Keep the path from the score to the conversation intact.

What can a trace tell you about an agent run?

A trace is the ordered record of a run. It connects the initial request to model calls, retrieval, tool invocations, memory operations, retries, handoffs, and the final response. In a multi-agent system, it should also preserve which agent delegated work to which other agent and what context crossed that boundary.

Use spans to answer concrete engineering questions: Where did the time go? Which tool failed? Which prompt and model version ran? How many tokens did the step consume? Did a retry change the result? Which state transition caused the loop?

If the agent is down, slow, expensive, or looping, start with the trace.

Here is one attempt (one person’s try at a task) at update these contacts from the trade-show list, read twice.

update these contacts from the trade-show list9 turns
t7 agent

6 of the 9 emails didn’t match. Updating the other 3.

t9 person

Where are the rest? Can you try that again?

In the illustrative run above, the trace records 12 spans, 9 tool calls, no errors, and no timeouts. The update_contacts tool returned success (200). The software did what it was asked to do.

But 6 of those 9 contacts were skipped because their emails didn’t match. The agent updated and logged the other 3 and reported the job done. On turn 9 the person said, “Where are the rest? Can you try that again?” The task stopped. The trace is accurate. It is also incomplete: it cannot tell you the person left empty-handed.

What a useful agent trace should preserve

  • Identity and lineage. Trace, span, conversation, user, workflow, agent, and parent-agent identifiers.
  • Version context. Model, prompt, tool, policy, retrieval index, and agent version.
  • Execution events. Model generations, tool inputs and outputs, memory reads and writes, retries, handoffs, and human interventions.
  • Operational measures. Latency, tokens, cost, status, error class, and resource use where relevant.
  • Outcome join keys. The stable identifiers that let a run connect to a task outcome, evaluation result, and conversation replay later.

Do not treat hidden chain-of-thought as a required observability field. Capture the actions, state changes, tool decisions, inputs, outputs, and explicit rationale your system is designed to expose. That is more reliable, safer to retain, and sufficient for most investigations.

OpenTelemetry already names the run

You do not have to invent a schema. The OpenTelemetry generative AI semantic conventions (opens in a new tab) already name the operations an agent performs and the attributes each one carries. They are still in development, so expect movement. Use them where they fit. A shared schema also makes a later vendor change easier.

  • Operations. gen_ai.operation.name takes invoke_agent, invoke_workflow, chat, execute_tool, retrieval, create_agent, embeddings, generate_content and text_completion.
  • Who ran. gen_ai.agent.id, gen_ai.agent.name, gen_ai.agent.version, gen_ai.request.model and gen_ai.response.model.
  • What it did. gen_ai.tool.name, gen_ai.tool.call.id, gen_ai.tool.call.arguments, gen_ai.tool.call.result and gen_ai.response.finish_reasons.
  • What it cost. gen_ai.usage.input_tokens and gen_ai.usage.output_tokens, plus the cache and reasoning token counts (see AI model pricing).
  • The join key that matters most. gen_ai.conversation.id. It is the one attribute that lets a span find its way back to the exchange it came from.

What is the difference between LLM observability and agent observability?

LLM observability watches one model call: the prompt, the completion, the tokens, the latency, and a score on that reply.

Agent observability watches the run that call sits inside. OpenTelemetry’s GenAI conventions name the run invoke_agent and each tool step execute_tool. One CRM attempt is an invoke_agent span with execute_tool children for find_contacts, update_contacts and log_activity.

A healthy model call can still sit inside a stopped task. update_contacts returns no error after updating 3 of 9 contacts. On turn 9 the person asks where the rest are.

How do you connect task outcomes to your traces?

The convention names the call. It does not name the task, the step, or whether the person finished. Those fields are yours, and they attach to the execute_tool span for the step that stopped, joined back to the run by gen_ai.conversation.id. Tag each span with the harness version so you can compare harness changes.

On this attempt the step is update_contacts. The span already carries gen_ai.operation.name of execute_tool and gen_ai.tool.name. You add the task, the intent, the turn and app.task.outcome of stopped. The contract further down shows the two halves on one span. Without the outcome half, the span updated 3 of 9 contacts and returned no error. With it, the span is one of the 528 stops on update them.

The same split shows up one boundary further out. An MCP server sees the tool call and not the conversation, which is what MCP observability is for. A Claude connector is one way that call arrives. Comparing two versions of the agent on live traffic is an A/B test, not another trace.

What should you measure when you monitor an agent?

A production scorecard should cover four questions: Is the service healthy? Is the agent behaving acceptably? Are users completing meaningful tasks? Can the team get from a bad number to the conversations that explain it? Track cost per finished task, not only token spend; see how a model call is billed.

swipe to see what each metric explains
LayerMeasureWhat it tells you
OperationsEnd-to-end and step latencyWhere users wait and which model or tool owns the delay
OperationsError, timeout, retry, and loop rateWhether execution is breaking or becoming unstable
OperationsTokens and cost per taskWhether a useful outcome is becoming more expensive
EvaluationCorrectness, groundedness, and policy checksWhether outputs meet a defined test or eval rubric standard
ExperienceTask completion and stop rateWhether people got the outcome they came for, and the share of attempts that stopped before it
ExperienceIntent-level drop-offWhich step inside the task creates the most loss
ExperienceRepetition, clarification, and abandonment signalsWhere the conversation is creating friction without throwing an error
ExperienceCohort and version spreadWho is affected and what changed around the same time

Define completion before you measure it

Task completion is not the same as a positive final message. An agent can say done after skipping a step. A person can also get what they need without explicitly confirming it. Define the outcome for each important task before turning it into a rate.

Use a small set of states that the team can review consistently:

  • Finished. The requested result was delivered and the available signals support completion.
  • Stopped. The conversation ended before the result was delivered, or the person explicitly rejected it.
  • Partial. Some of the task was completed, but a required intent was missed.
  • Handed off. The agent moved the task to a person or another system as designed.
  • Unknown. There is not enough information to make a defensible call.

Keep explicit events separate from inferred signals. A completed transaction, saved document, or accepted handoff is stronger than an LLM judgement based on the final turn. Inference still matters when no product event exists, but it should carry a detector version and confidence. Review a sample of each outcome regularly, especially after changing the model, prompt, taxonomy, or detector.

The denominator matters too. Report how many attempts reached each intent, not only how many conversations started. Otherwise a late step can look healthy simply because an earlier step lost most people first.

Start with a real task, not a generic “agent quality” score. Count every conversation where somebody asked to update these contacts from the trade-show list. In the illustrative dataset used throughout this site, there are 2,400 attempts: 1,536 finished and 864 stopped.

2,400 attempts at one task

illustrative
1,536 finished · 64% 864 stopped 528update them 244log the activity 92find the contacts
The 864 stops are not spread evenly. 528 of them sit on one step: update them.

The 64% completion rate is a baseline, not a diagnosis. The task holds three smaller intents:

  • find the contacts. Which records in the CRM match the people on the list. 92 stops.
  • update them. Write the new details to each matched contact. 528 stops.
  • log the activity. Record the trade-show touch against each updated contact. 244 stops.

The largest absolute loss and the worst step rate both sit on update them. Of the 2,308 attempts that reached that step, 528 stopped there, a 22.9% step failure rate. Halving that loss would move another 264 attempts through the task, lifting completion from 64% to 75% in this illustrative example.

A metric you can act on names the task and the step. It also opens the conversations underneath.

There is no universal “good” completion rate across every kind of agent. Compare the same task across periods, versions, and cohorts. Then inspect the change underneath the number.

What data model works for agent observability?

A span cannot represent a person’s outcome. A dashboard average cannot explain one. Connect them without losing either. Give every conversation an intent label so you can group runs by what people wanted.

From execution to the turns

connected units
The investigation can move down from a cohort shift to one turn, or up from one bad run to the size of the pattern.
  • Topic groups the broad subject area, such as managing contacts.
  • Task is what the person came to accomplish, such as update these contacts from the trade-show list. It is the outcome worth measuring.
  • Intent is one step inside that task: find the contacts, update them, log the activity.
  • Signal is something notable on a specific turn: repetition, clarification, tool trouble, dissatisfaction, or recovery.
  • Person joins behaviour across conversations instead of treating every session as a stranger.
  • Cohort compares people by plan, region, behaviour, version, or metadata you already send.

The same schema works across research agents, support agents, and in-product assistants. Each produces tasks, intents, signals, people, and cohorts. The labels come from the conversations, so you do not need to design every branch first.

Keep the original words. Put the summary above them and the fields beside them. Features covers how each of the six is detected and what you can ask of it.

How do you investigate a bad agent run, step by step?

Good observability tells you what to fix first. Start with the pattern, then narrow it to the conversations and runs behind it. If a run keeps calling the same tool, check it against the loop stop rules.

Pattern to proof

one drill path
detectFind the task that moved

Start from completion, stops, repetition, or another production signal.

locateSplit the task into intents

See which step creates the largest loss and the worst rate.

segmentCompare versions and cohorts

Separate a global problem from one concentrated in a plan, region, or returning-user group.

replayRead the deciding turns

Open the conversations behind the aggregate and identify the repeated mechanism.

verifyShip a fix and watch the same task

Compare like with like. Confirm improvement without moving the failure elsewhere.

A dashboard that cannot open the underlying conversations is a reporting view, not an investigation workflow.

In the running example, the intent breakdown puts update them first. The transcripts show 6 of the 9 emails didn’t match, so those contacts were skipped. The trace identifies the update_contacts tool call that skipped them. The cause could sit in tool parameters such as match_by, prompt behaviour, field permissions, or how emails were written in the list. Now engineering knows where to start.

Each team gets the part it needs. Product sees the scale and affected users. CX sees the conversations and accounts. Engineering gets run identifiers and spans. Evaluation turns confirmed failures into regression cases. Keep these as links in one chain, not screenshots in four tools. The workspace shows this drill path.

Turn production failures into tests

Production and evaluation should form a loop. Conversation analytics finds a repeated task failure. Replay shows the turns where it happens. The trace identifies the run, tool, model, and version involved. Once the team confirms the cause, that conversation becomes the basis for a regression case and an updated eval rubric.

Do not copy sensitive production text into a test set by default. Redact it, preserve only the details needed to reproduce the mechanism, and record why the case belongs in the dataset. A good regression case includes the expected task outcome, the critical intent, the relevant tool behaviour, and the failure condition it is meant to catch.

After the fix passes the eval, return to production and watch the same task, intent, version, and cohort. An offline pass shows that the known case improved. It does not show that completion improved for everyone or that the failure did not move to another step.

How do you set up agent observability?

Start with one task and trace it end to end. Collecting every field before you have a review workflow adds storage, privacy risk, and cost. Agents that start from an event instead of a person need extra care; see MCP Events.

Choose one production task

Pick a frequent, consequential job with a recognisable finish. “Update these contacts from the trade-show list” is better than “general assistant quality.”

Define observable completion

Write what finished, stopped, partial, and handed-off mean. Use user-visible tool results and turns when possible; do not make one LLM judge the only source of truth.

Instrument the run

Record hierarchical spans for models, tools, retrieval, memory, handoffs, and human interventions. Attach versions and stable join keys.

Capture conversation context safely

Preserve the turns needed to understand the task. Redact sensitive fields, restrict access, set retention, and avoid collecting content you do not need.

Connect task, person, and cohort

Join conversations across time and attach useful metadata such as plan, region, agent version, and release. Keep the original transcript reachable.

Build the review loop

Review the largest intent-level losses, read a bounded sample, route confirmed causes, add regression cases, and compare the same task after the fix.

Minimum useful event contract

swipe to see the full contract
KeepExamplesWhy
Identifierstrace, span, run, conversation, user, agentConnects the same event across tools and levels
Versionsmodel, prompt, tool, workflow, policy, indexExplains what changed before a regression
Timing and statusstart, end, latency, status, retry, error classSupports operational monitoring and trace reconstruction
Interactionturn role, tool name, safe input/output reference, handoffShows how the run and conversation unfolded
Outcometask, intent, finished or stopped, signal, reviewer labelConnects execution to the user-visible result
Contextplan, region, release, custom metadataReveals concentrated failures hidden by the average

Here is the contract on the tool call that skipped 6 contacts. OpenTelemetry names the yellow fields. You add the blue fields to connect the run to the person’s outcome.

One span, both halves

illustrative
{
  "gen_ai.operation.name":     "execute_tool",
  "gen_ai.agent.id":           "crm-assistant",
  "gen_ai.agent.version":      "4.2.0",
  "gen_ai.conversation.id":    "c_88421",
  "gen_ai.tool.name":          "update_contacts",
  "gen_ai.tool.call.id":       "call_04",
  "gen_ai.usage.input_tokens":  1840,
  "gen_ai.usage.output_tokens":   96,

  // not named by the standard. you add these.
  "app.topic":         "managing contacts",
  "app.task":          "update these contacts from the trade-show list",
  "app.intent":        "update them",
  "app.turn.index":    7,
  "app.result.count":  3,
  "app.task.outcome":  "stopped",
  "app.person.id":     "p_4471",
  "app.person.plan":   "enterprise",
  "app.person.region": "emea"
}
Without the blue fields, this span updated 3 of 9 contacts and returned no error. With them, it becomes one of the 528 stops on update them.

You do not need to paste a second analytics snippet into every turn to use Abracadabra. Connect the conversations you already retain, live or backfilled. The product reads topic, task, intent, and signal from the conversation, then lets you compare people and cohorts using the metadata attached to them.

How do you choose an agent observability tool?

Choose a tool for the investigation your team needs to run. Feature counts are a poor proxy for that job.

Choose by the question

complementary layers
TRACES EVALS EXPERIENCE Why this run behaved this way Is this release worse than last Did the person get the thing
Run tracing, evaluation, and conversation observability answer different questions. A production team often needs all three layers.
swipe to compare tool categories
CategoryBest forWhat to require, and what it will not replace
APM and agent tracingDebugging runs, latency, errors, cost, and execution pathsRequire hierarchical spans, OpenTelemetry export, prompt and tool context, version tags, and multi-agent lineage. It does not replace user-outcome observability or a disciplined eval programme.
Evaluation platformTesting releases and scoring sampled production outputsRequire datasets, human review, custom evaluators (what is an eval), eval rubrics, experiment comparison, and regression gates. It does not replace operational tracing or whole-population conversation observability.
Conversation and task observabilityTasks, intents, friction, users, cohorts, trends, and replay (the experience layer of observability)Require automatic classification, drill-down to turns, cohort comparison, version joins, and no forced taxonomy. For deep frameworks, see AI agent analytics, conversation analytics for AI agents, and product analytics for AI agents.
Security and governanceAccess, policy, audit, data handling, and risky actionsRequire redaction, retention, permissions, audit history, policy events, and intervention controls. It does not explain quality, product outcome, or engineering cause by itself.

Common tools and the questions they answer

These tools answer different questions. A team may need more than one.

swipe to see what each one leaves open
ToolBuilt to answerWhat it leaves open
LangSmithWhy a run behaved this way. It brings traces, datasets, and evals together, especially for LangChain or LangGraph teams.Task outcomes across the full population. Runs alone do not explain what someone tried to finish over 9 turns.
LangfuseRun-level tracing with an open-source, self-hostable, OpenTelemetry-based product.Tasks, intents, and cohorts still need to be defined and derived.
Arize PhoenixWhether output quality holds up, with tracing and an evaluation library. It is also OpenTelemetry-based and self-hostable.Whether the person finished. A good score on sampled outputs does not prove task completion.
BraintrustWhether a release performs worse than the last one, using datasets, experiments, and CI gates.Production behaviour outside the dataset. An eval only tests the cases included in it.
Datadog, GrafanaAgent telemetry alongside infrastructure monitoring, alerts, and on-call workflows.What the conversation meant and whether the person completed the task.
AbracadabraWhat people asked for, which step stopped them, who it hit hardest, and the turns underneath. Conversation and task observability for the experience layer.Run-level debugging and release gating. Keep a tracer and an eval tool for those.

Pricing changes too often for a durable comparison here. Check each vendor’s current page against the volume you send, and compare model token rates on Directories. Abracadabra’s plans are on one page.

What to check before you buy

  • Can an aggregate open the exact runs or conversations behind it?
  • Can you filter by agent, prompt, model, tool, release, user, task, and cohort without rebuilding the schema?
  • Does the product distinguish technical success, evaluated quality, and user task completion?
  • Can you control redaction, retention, access, sampling, and export?
  • Can confirmed production failures become regression cases and can fixes be compared on the same task?
  • Will product, CX, engineering, and AI quality teams use the same record chain, or create separate screenshots?

AI agent observability FAQ

What is AI agent observability?

Agent observability is the practice of collecting and connecting execution telemetry, evaluations, safety events, and user-outcome records. With them, a team can understand how an agent behaves in production and investigate failures.

Where does agent analytics fit next to observability tools?

Span-level tracing tools (like Langfuse, LangSmith, or OpenTelemetry) cover the execution layer of observability: spans, traces, latency, token costs, model inputs/outputs, and runtime errors. They answer whether the agent software ran properly. Abracadabra is conversation and task observability, the experience layer of observability. It reads the unstructured conversation to extract the user’s intent and track step-by-step funnel drop-offs. It detects conversational friction, such as tone drops and repeated prompts, and measures task completion across cohorts. Traces tell you the run finished; Abracadabra tells you whether the person did. For an in-depth breakdown of how conversations become structured drop-off funnels, read conversation analytics for AI agents, and what is AI agent analytics.

Is Abracadabra an observability tool?

Abracadabra is an observability platform for the conversation: what people asked for, what worked, and what broke. Traces tell you the run finished. Abracadabra shows whether the person got what they came for.

How is agent observability different from LLM observability?

LLM observability often centres on individual model calls: prompts, completions, tokens, latency, and evaluations. Agent observability follows the larger execution graph, including tools, memory, state, retries, handoffs, and the outcome across a multi-turn task.

What is the difference between monitoring and observability?

Monitoring tells you whether known signals crossed a threshold. Observability preserves enough connected run records and turns to investigate questions you did not predict when the system was instrumented.

Does this replace LangSmith, Langfuse, or Braintrust?

No. Keep traces for run-level diagnosis and evals for defined quality checks. Abracadabra reads the conversation for tasks, intents, signals, people, cohorts, and the turns underneath each pattern.

Where does span-level trace observability fit into the stack?

Span-level trace observability (using OpenTelemetry-native tracers) covers technical runtime diagnostics. It captures raw LLM inputs and outputs, model latency, token spend, trace spans across tool calls, and error stack traces. Where run-level tracing leaves a gap is the experience layer of observability. A span tree does not parse unstructured dialogue into user tasks or track multi-turn drop-off funnels. It also does not detect conversational friction (such as repeated prompt steering or polite exits) or calculate cohort task completion rates. Engineering teams use span-level tracing to debug execution alongside Abracadabra for conversation and task observability.

What should I measure instead of a generic success rate?

Track operational health, evaluated quality, task completion, intent-level stops, conversation friction, cost per useful outcome, version changes, cohort spread, and the turns behind each metric. Do not collapse them into 1 score.

Do I need to capture chain-of-thought?

No. Record what the agent did, what changed, and what the person saw. Hidden reasoning is not a required telemetry field.

When is Abracadabra the wrong tool?

Use tracing first when the agent is erroring, timing out, looping, or unexpectedly expensive. Use an eval platform when you are testing a labelled dataset or release. Use UI session replay when the question is whether people can find or operate the surrounding interface. Abracadabra becomes useful once there are real conversations to read.

Are the numbers in this guide real customer data?

No. It is illustrative, and it is used consistently throughout this post.

all posts

Add the outcome to your traces.

Traces show that the run finished. Abracadabra shows whether the person got what they asked for, and the conversation behind each stop.

Start free. No card.