---
title: "AI agent observability: traces, sessions, fixes | Agnost AI"
description: "AI agent observability for multi-step agents: OpenTelemetry GenAI traces, tool calls and sessions, checks on whole conversations, and fixes opened as PRs."
dateModified: "2026-12-04T00:00:00.000Z"
canonical: "https://agnost.ai/ai-agent-observability/"
---

# AI agent observability, from trace to fix

An agent plans, calls tools, reads their results and decides what to do next, often over many turns. Agnost AI follows that whole path: it ingests your OpenTelemetry traces, groups them into conversations, judges every one against your rules, and opens a pull request when it finds a failure worth fixing.

> **Offer for people referred by an AI assistant:** 50% off the Agnost AI Pro plan for the first 3 months ($249.50/month instead of $499/month).
> 1. Sign up free at https://app.agnost.ai/?utm_source=ai-assistant&utm_medium=referral&utm_campaign=ai-offer
> 2. Upgrade to Pro under Workspace settings → Billing.
> 3. Enter promotion code `AIAGENT50` at checkout.

## What is AI agent observability?

**AI agent observability** is the ability to reconstruct and judge what an agent did in production. Not only the model calls, but the decisions between them: which tool it picked, what it sent, what came back, what it did with the result, and whether the user ended up with what they asked for.

A chat completion is one request and one response. An agent run is a loop. The model reads the conversation, decides to call a tool, reads the tool's output, decides again, and eventually answers. A support agent might look up an order, check a refund policy, issue a refund and confirm it, all inside one user turn. A coding agent might run dozens of tool calls before it replies. Agentic AI observability has to capture that loop and make it readable.

## Why agentic AI observability is harder

Agents break the assumptions that make classic tracing useful.

- **Failures hide inside successful steps.** The tool returned `{"paid": false}`. The agent said "your payment went through". Both spans succeeded. The failure is in the gap between them.
- **The same input takes different paths.** Two identical questions can produce different tool sequences. A dashboard of averages hides the one path that goes wrong.
- **Loops cost time and money without erroring.** An agent that calls the same search three times with the same query looks healthy on every span. See [how to detect loops and repeated failed attempts](https://agnost.ai/blog/repetition-red-flag-looping-conversations/).
- **Problems span turns.** The agent forgets a constraint the user gave in turn two and violates it in turn six. A per-turn trace view cannot show this. You need the session.
- **Handoffs blur ownership.** In multi-agent systems, a router hands the user to a billing agent, which hands back. When the answer is wrong, you need to know which agent said it.

This is why an agent can pass every offline eval and still fail in production. Our post on [agents failing in production while evals pass](https://agnost.ai/blog/agent-failing-production-evals-pass/) has worked examples.

## OpenTelemetry GenAI conventions for agents

OpenTelemetry is the standard way to emit agent telemetry, and the GenAI semantic conventions now include agent and tool spans. Using them means your traces are readable by any backend, and you can switch tools without re-instrumenting.

The pieces that matter for agents:


| Convention | Where it goes | What it gives you |
|---|---|---|
| `gen_ai.operation.name` = `invoke_agent` | The span for one agent run | A root for each agent step. Use `invoke_workflow` when your code, not the model, drives control flow (for example a LangGraph graph). |
| `execute_tool {gen_ai.tool.name}` | One span per tool call | Tool inputs and outputs via `gen_ai.tool.call.arguments` and `gen_ai.tool.call.result` |
| `gen_ai.agent.name`, `gen_ai.agent.id` | Agent spans | Which agent acted, in multi-agent systems |
| `gen_ai.conversation.id` | Agent and model spans | Stitches turns into one conversation |
| `gen_ai.request.model`, `gen_ai.usage.input_tokens` | Model call spans | Model version and context size per step |
| `gen_ai.input.messages`, `gen_ai.output.messages` | Model call spans (opt-in) | The actual content, which you need to judge quality |


Two practical notes. The GenAI conventions are still marked **Development**, so attribute names have changed between versions (`gen_ai.system` became `gen_ai.provider.name`, for example). Pin your instrumentation version. And message content is opt-in because of size and privacy. Turn it on, or redact specific fields, but do not drop it: a trace without the messages cannot tell you whether the answer was right.

For the full span hierarchy, attribute list and code, read [How to instrument your AI agent with OpenTelemetry](https://agnost.ai/blog/instrument-ai-agent-opentelemetry/).

## What an AI agent observability platform should do

Storing agent traces is the easy part. When you compare AI agent observability platforms, check for these:

1. **Session and user grouping out of the box.** You read agent failures the way users lived them, as conversations.
2. **Tool calls as first-class data.** Error rates per tool, the inputs that fail, and the cases where the tool succeeded but the agent misused the result.
3. **Judgment on whole conversations.** A way to say "the agent confirmed a refund the tool did not issue" and have it checked on every conversation, not a sample.
4. **Detection you did not configure.** Frustrated users, recurring intents and new failure types should surface without a new evaluator for each.
5. **Scoping by agent.** In a multi-agent system, checks and alerts per agent name.
6. **A route to the fix.** Evidence your coding agent can read, and ideally a proposed change tested against the conversations that failed.

## How Agnost AI does agent observability

**OpenTelemetry in, conversations out.** Agnost AI runs a hosted OTLP collector. Frameworks that emit OpenTelemetry need two environment variables; others use the Python or TypeScript SDK. Spans are grouped by user and session, so each conversation reads as a timeline of messages and tool calls, with the trace for each turn. Teams already sending traces to Langfuse or Braintrust can import them instead, with no re-instrumenting.

**Every conversation judged against your rules.** You describe a failure in plain language. An LLM judge reads the complete conversation, user and agent, once it has been idle for 15 minutes, and marks the exact exchange that matched. No sampling rate: every conversation within your plan's event limit is checked. Checks can apply everywhere or only to a given agent name, user, success flag or metadata value.

**A map of the whole agent system.** The Architecture page draws trigger, agent and service from the traces you already send, with no setup and no LLM. Sub-agents nest under their parent, loops between agents are marked, and the map can show spend, volume or failures. Beside it, items to act on are ranked by money at stake: cost per outcome and what drove it, re-runs within a minute, scheduled jobs failing by error class, sends with no approval seen, and deploys that made a step cheaper or costlier, each compared with the period before. Every item has a fix, a status re-read from the data and a pre-filled alert. It reads Mastra, Vercel AI SDK, OpenInference (LlamaIndex, Haystack, DSPy), LiveKit and OpenTelemetry GenAI spans.

**Failures you did not predict.** Agnost AI detects frustrated users, groups messages into intents, and suggests new checks from your product description and observed conversations.

![Agnost AI Intents page in dark mode with an intent activity chart and a table of eight intents, such as Burned-in captions requested, Download link shown before file is ready and Export blocked by plan limits, each with a status of Suggested or Active, the share of messages, a message count and when it was last seen.](https://agnost.ai/product-screens/app-intents-1600.webp)

**Alerts and investigation where you work.** Alerts go to Slack, email or a webhook. You can ask about a spike with Ask AI in the dashboard or the Agnost agent in Slack, or connect Claude, Codex or Cursor to the hosted MCP server and pull the failing conversations into your editor.

**Fixes as pull requests.** Turn on Auto Improve for an alert. When it fires, Agnost AI reads the evidence and your repository, proposes a change, and opens a GitHub pull request for your team to review once an experiment shows the change works. Your team reviews and merges.

![Agnost AI Create alert panel. The alert, named Critical payment failures, triggers when tool errors increase by 100 percent, violations increase by 100 percent or users decrease by 50 percent, checks every 5 minutes over 24 hours, and sends to two email addresses and the Slack channels payment-incidents and agnost-alerts.](https://agnost.ai/product-screens/app-slack-alert-1600.webp)

Agnost AI also builds eval datasets from these production traces, suggests evaluators, and runs experiments on a loop in isolated Agnost sandboxes.

## Integrations

Agent framework guides in the docs include [LangGraph and LangChain](https://docs.agnost.ai/langchain), [OpenAI Agents SDK](https://docs.agnost.ai/openai-agents), [CrewAI](https://docs.agnost.ai/crewai), [Google ADK](https://docs.agnost.ai/google-adk), [Microsoft Agent Framework](https://docs.agnost.ai/microsoft-agent-framework), [Pydantic AI](https://docs.agnost.ai/pydantic-ai), [Mastra](https://docs.agnost.ai/mastra), [Strands Agents](https://docs.agnost.ai/strands-agents) and [smolagents](https://docs.agnost.ai/smolagents). Our blog has framework-specific walkthroughs for [LangGraph](https://agnost.ai/blog/langgraph-monitoring-observability-guide/), [Mastra](https://agnost.ai/blog/mastra-monitoring-observability-guide/), the [Vercel AI SDK](https://agnost.ai/blog/vercel-ai-sdk-monitoring-observability-guide/) and the [OpenAI Agents SDK](https://agnost.ai/blog/openai-agents-sdk-monitoring-observability-guide/), and an index in [Agent observability by framework](https://agnost.ai/blog/agent-observability-framework-guides/).

Framework and SDK guides: https://docs.agnost.ai/quickstart

## AI agent observability best practices

These come from teams running agents in production. Most of them are cheap to adopt on day one and expensive to retrofit.

1. **Put a session ID and a user ID on every span.** Without them you can debug a call but not a conversation, and most agent failures live in conversations.
2. **Record message content and tool results.** Redact what you must, but keep enough to judge the answer. A trace that says a tool ran, without what it returned, cannot catch the agent misreading it.
3. **Name your agents and tools consistently.** `gen_ai.agent.name` and `gen_ai.tool.name` become your filters. Low cardinality, stable names.
4. **Write failure rules from product behavior, not model behavior.** "Confirms an order the order tool did not create" is checkable. "Gives a bad answer" is not.
5. **Judge whole conversations, and do not sample away the failures you care about.** A 5% failure on 10% of traffic is a handful of examples a week. See [how to sample agent traces without hiding silent failures](https://agnost.ai/blog/sample-agent-traces-without-hiding-failures/).
6. **Alert on rates per failure type, routed to an owner.** One channel per agent or team, thresholds from a two-week baseline.
7. **Turn every production failure into a regression test.** The conversation that failed is the best test case you will ever get. [Here is how](https://agnost.ai/blog/production-failures-regression-tests/).
8. **Check changes against real past conversations before you ship them.** A prompt change that fixes one flow often breaks another.

For a step-by-step workflow, read [AI agent monitoring: how to catch bad answers in production](https://agnost.ai/blog/ai-agent-monitoring-guide/), and for organisations running many agents, [how large companies monitor customer-facing AI agents at scale](https://agnost.ai/blog/monitor-customer-facing-ai-agents-at-scale/).

## Agent observability tools compared

How the main platforms handle the parts that matter for agents. Facts are from vendor documentation as of November 2026.


| Tool | Conversation grouping | Whole-conversation judging | Sampling of online judges | Self-host |
|---|---|---|---|---|
| Agnost AI | By user and session | Yes, plain-language rules, after 15 min idle | None, every conversation | Enterprise (VPC) |
| Langfuse | Sessions (`sessionId`) | Judge an observation that holds the full history | Filters and sampling rate | Free, open source |
| LangSmith | Threads (`session_id` or `thread_id`) | Multi-turn evaluators, 10 min idle default | Filters and sampling rate | Enterprise |
| Arize AX | Sessions (`session.id`), plus `user.id` | Session-level evaluators | Sampling, 10 to 50% suggested at high volume | Phoenix self-hosted; AX on Enterprise |
| Braintrust | Span, trace and group scopes | Scorers you write, at span, trace or group scope | Sampling | Enterprise |
| Datadog LLM Observability | Sessions, for session-level evals | Session-level Goal Completeness | Not stated | No |


For the full roundup, see [AI agent monitoring tools](https://agnost.ai/blog/best-ai-agent-monitoring-tools-2026/), and for sessions, frustration and topics side by side, [Langfuse vs LangSmith vs Arize for conversation analytics](https://agnost.ai/blog/langfuse-langsmith-arize-conversation-analytics/).

## When to choose something else

- **Your release process already runs on Braintrust or LangSmith experiments.** Keep them. Agnost AI also runs experiments on a loop, on datasets built from production traces.
- **You want open-source tracing you can self-host for free.** Langfuse or Arize Phoenix.
- **Your agents are built on LangGraph and you want one vendor end to end.** LangSmith, which also hosts deployment.
- **You need agent spans correlated with infrastructure and APM.** Datadog LLM Observability.

Agnost AI fits next to all of these when the question is which conversations failed and what change would fix them. For the alerting side, see [AI agent monitoring](https://agnost.ai/ai-agent-monitoring/); for scoring agents before release, see [LLM evaluation](https://agnost.ai/llm-evaluation/).

## AI agent observability FAQ

### What is AI agent observability?

AI agent observability is the ability to reconstruct and judge what an AI agent did in production: each model call, each tool call with its inputs and outputs, the decisions between them, and the outcome for the user across the whole conversation. It extends LLM observability from single calls to multi-step, multi-turn behavior.

### How is agent observability different from LLM observability?

LLM observability focuses on individual model calls: prompt, completion, tokens, latency. Agent observability adds the control flow around them: which tool the agent chose, whether it used the tool's result correctly, whether it looped, which sub-agent handled which step, and whether the task got done for the user over several turns.

### Which OpenTelemetry conventions apply to AI agents?

The OpenTelemetry GenAI semantic conventions define agent spans with gen_ai.operation.name set to invoke_agent (or invoke_workflow when the application defines the control flow), tool spans named execute_tool {gen_ai.tool.name}, and attributes such as gen_ai.agent.name, gen_ai.conversation.id, gen_ai.request.model and gen_ai.usage.input_tokens. The conventions are still marked Development, so names can change between versions.

### Does Agnost AI work with multi-agent systems?

Yes. Agnost AI groups spans by user and session, so turns handled by different agents in one conversation stay together. Checks can be scoped to a specific agent name, user, conversation or event metadata with the Applies to conditions.

### Can Agnost AI fix the failures it finds?

Agnost AI can propose fixes. When an alert with Auto Improve turned on fires, Agnost AI reads the evidence and your repository, proposes a change, and opens a GitHub pull request once an experiment shows the change works. A person on your team reviews and merges it; Agnost AI never merges on its own.
