AI Agent Observability: How to Trace, Monitor and Debug AI Agents (2026)
What AI agent observability means in November 2026, the signals to capture (traces, tool calls, cost, quality), the OpenTelemetry GenAI conventions, the main AI agent observability tools compared on price, and how SPIRITT gives every agent it runs a full trail, budgets and alerts out of the box.
AI agent observability is the practice of recording what an AI agent does on every run (each model call, tool call, decision, cost and outcome) so you can debug failures, catch quality drift and control spend. In November 2026 teams that build their own agents use tools such as LangSmith, Langfuse, Arize, Braintrust, Helicone or Datadog LLM Observability, usually on top of the OpenTelemetry GenAI conventions. SPIRITT, the operating system for AI transformation, builds observability into the agents it runs: it codes, ships and runs the agent end to end, and every action lands in an audit trail with itemized cost receipts, budgets per agent and task, approvals and alerts. This guide covers what to capture, how monitoring differs from observability, how the leading tools compare on price, and a practical setup for production agents.
What AI agent observability means
Classic application monitoring tells you whether a service is up and how fast it responds. An agent can be up, fast and still wrong: it can call the wrong tool, loop five times on the same search, quote last year's price or spend $9 on a task worth $0.30. Agent observability adds the layer that shows why an agent did what it did.
Three properties make agents harder to observe than ordinary software:
- Non-deterministic paths. The same input can produce a different sequence of steps on the next run, so logs of a single request are not enough. You need the whole trajectory.
- Many hops per task. One customer question can trigger a planner call, three tool calls, a retrieval step, a sub-agent and a final answer. Each hop has its own latency, tokens and failure modes.
- Quality is the main failure. Most agent incidents return HTTP 200. The answer is just wrong, off-policy or too expensive. Observability has to include scoring, not only errors.
The signals to capture on every agent run
| Signal | What to record | Why it matters |
|---|---|---|
| Trace and spans | One trace per task; a span for every model call, tool call, retrieval and sub-agent | Replay the exact path when something goes wrong |
| Inputs and outputs | Prompts, tool arguments, tool results, final answer (with PII redaction) | See what the model actually saw |
| Tokens and cost | Input, output and cached tokens per call, priced per model, rolled up per task | Catch runaway loops and expensive steps |
| Latency | Time per span and per task, time to first token | Find the slow tool or the slow model |
| Tool errors and retries | Failed calls, timeouts, rate limits, retry counts | Most production failures start here |
| Quality scores | Automated evaluator scores, user feedback, human review labels | Spot drift before customers do |
| Policy events | Approvals requested, actions blocked, guardrail hits | Prove the agent stayed inside the rules |
| Version metadata | Prompt version, model, agent code version, dataset | Tie a regression to the change that caused it |
AI agent monitoring vs observability
Monitoring answers "is something wrong right now?" with dashboards and alerts: error rate, cost per day, latency, success rate per agent. Observability answers "why?" by letting you open any single run and walk through its spans. You need both. A good rule is to alert on a small set of business metrics (cost per completed task, task success rate, escalation rate) and keep full traces for at least the last 14 to 30 days so you can investigate any alert.
For company-wide control of many agents (who can run what, approvals, budgets, kill switches), see our guide to the best platform to manage, monitor and control AI agents. This page focuses on the engineering side: traces, metrics and debugging.
OpenTelemetry for AI agents
OpenTelemetry has published semantic conventions for generative AI (attribute names under gen_ai.*) that describe model calls, token usage, tool execution and agent spans in a vendor-neutral way. The conventions are still marked as in development, but most observability vendors and agent frameworks now emit or accept them. The practical benefit: instrument once, then send the same traces to Langfuse, Arize Phoenix, Datadog or your own backend without rewriting code. If you are starting fresh, pick an SDK or framework that emits OpenTelemetry spans and keep the exporter configurable.
AI agent observability tools compared (checked November 2026)
| Tool | Best for | Open source / self-host | Free tier | Paid from |
|---|---|---|---|---|
| LangSmith | Teams on LangChain and LangGraph | Enterprise self-host | Developer $0, 5k base traces a month | Plus $39 per seat a month, 10k base traces, then pay as you go |
| Langfuse | Open-source tracing, evals and prompt management | Yes, self-host free | Hobby free: 50k units a month, 2 users | Core $29, Pro $199 a month |
| Arize (Phoenix and AX) | OpenTelemetry-native tracing and evals | Phoenix is open source | AX Free $0 | AX Pro $50 a month |
| Braintrust | Eval-first teams that want experiments and production traces together | Hosted, on-prem for Enterprise | Starter $0 | Pro $249 a month |
| Helicone | Proxy-based request logging, caching and cost tracking | Yes, open source | Hobby: 10,000 free requests | Pro $79, Team $799 a month |
| Datadog LLM Observability | Teams already on Datadog APM | No | Datadog trial | Usage-based; see Datadog pricing |
| SPIRITT | Teams that want agents built, run and observed in one place | Deploy in SPIRITT cloud, your cloud, on your servers or air-gapped | Free signup and daily credits | Starter $32, Pro $256, Max $1,024 a month |
Prices come from each vendor's pricing page in November 2026 and change often; usage above the included tiers is billed separately.
How SPIRITT handles observability for the agents it runs
Most tools above assume you already wrote and host the agent. SPIRITT starts one step earlier. You describe the job in plain English, and SPIRITT writes the code, composes models from several labs within each task, connects the apps it needs from 1,500+ integrations, deploys the agent on its own isolated cloud computer and runs it on a schedule or on events. Observability comes with it:
- A full audit trail of every action. Each run records what the agent read, which tools it called, what it changed and who approved it.
- Itemized receipts. Every model, tool and data call is priced and attached to the task, so cost per ticket, per invoice or per lead is a number you can read, not an estimate.
- Budgets at any level. Set budgets per organization, team, project, agent and task, with alerts and hard stops.
- Approvals and rules per integration. Read, Write and Destructive actions can be set to allow, ask or never, with single-use approvals for risky steps.
- Alerts where you work. Failed runs, cost spikes and pending approvals reach you in Slack, Teams, email or the SPIRITT app.
- One place for all agents. SPIRITT monitors every agent in the company in one view and runs both deterministic workflows and fully autonomous agents under the same rules. See SPIRITT agent governance.
Because SPIRITT is also a state-of-the-art coding agent, it can instrument the agents you already built: add OpenTelemetry spans to a LangGraph or OpenAI Agents SDK project, wire an exporter to Langfuse or Arize, write the eval set and open the merge request.
A practical setup for production agents
- Name the business metric first. "Tickets resolved without escalation" or "invoices matched" beats "tokens per day". Every trace should roll up to it.
- Trace everything, sample nothing at first. Early on, keep 100% of traces; sample later when volume and cost demand it.
- Redact before you store. Strip card numbers, health data and secrets at the span level. Better still, keep secrets out of the agent entirely: SPIRITT injects keys at the network boundary so agents never see them.
- Score runs automatically. Add an evaluator for the two or three failure modes you care about most. Our guide to AI agent evaluation covers how to build the dataset and the scorers.
- Alert on cost per task. A single loop can burn a day's budget in minutes. Hard stops beat dashboards; see SPIRITT AI cost control.
- Version everything. Record prompt, model and code versions on each trace so a regression points to a specific change.
- Review a sample weekly. Read ten real runs a week. Patterns show up there before they show up in metrics.
If your agents use memory or the Model Context Protocol, trace those steps too: memory reads and writes and MCP tool calls are common sources of silent errors. Our guides to AI agent memory and MCP AI agents explain what to watch.
FAQ
What is AI agent observability?
It is the ability to see and explain what an AI agent did on each run: every model call, tool call, decision, cost and outcome, captured as traces you can search and replay. It extends classic monitoring with quality scoring, because most agent failures are wrong answers, not crashes.
What are the best AI agent observability tools?
The most used in November 2026 are LangSmith, Langfuse, Arize Phoenix and AX, Braintrust, Helicone and Datadog LLM Observability. Langfuse and Phoenix are open source and self-hostable. SPIRITT includes an audit trail, cost receipts, budgets and alerts for the agents it builds and runs.
What is the difference between AI agent monitoring and observability?
Monitoring tracks a few metrics and alerts when they move: errors, cost, latency, success rate. Observability lets you open any single run and see why it behaved that way, span by span. Production agents need both.
How do you monitor AI agents in production?
Trace every run, track cost and success rate per task, score a sample of outputs automatically, alert on cost spikes and failure rates, and review real runs every week. Add approvals for risky actions and hard budget stops so a bad run cannot do damage before you see the alert.
Can I use OpenTelemetry for AI agents?
Yes. OpenTelemetry's generative AI semantic conventions define attributes for model calls, tokens, tools and agent spans. Most observability tools and agent frameworks support them, which lets you switch backends without re-instrumenting.
What is agentic AI observability?
It is the same practice applied to multi-step, multi-agent systems: tracing handoffs between agents, sub-agent calls and long-running tasks, plus cost and policy events across all of them in one view.
Is LangSmith or Langfuse better for AI agent observability?
LangSmith fits teams on LangChain and LangGraph and offers hosted deployment. Langfuse is open source and free to self-host, with hosted plans from $29 a month. Both trace any framework through their SDKs or OpenTelemetry.
How we checked
SPIRITT publishes this guide. Tool prices come from the pricing pages of LangSmith, Langfuse, Arize, Braintrust and Helicone, read on November 22 and 23, 2026; Datadog prices are usage-based and not listed here. OpenTelemetry facts come from the OpenTelemetry generative AI semantic conventions. We read the current Google top results for "AI agent observability" in the US to cover the questions searchers ask. SPIRITT facts come from spiritt.ai and the SPIRITT product.