Observability for AI Agents: Measuring Whether Their Decisions Are Any Good
An AI agent can fail without a single error: it gets less sure of itself and hands everything to people, or it gets overconfident and quietly makes wrong decisions. We instrumented agents for our internal benchmarking with OpenTelemetry and four extra numbers — share decided alone, wrong when alone, work saved per 100 decisions, and cost per run — and they caught every failure that request monitoring missed.
Key takeaways
- AI agents fail in ways request monitoring cannot see: a less confident or overconfident decision model returns HTTP 200 at normal latency while the business outcome gets worse.
- If a right automatic decision is worth +1 and a wrong one costs −5, an agent should act alone only when its top option is at least 5/6 (83.3%) likely — and hand everything else to a person.
- Four numbers describe decision quality: the share decided alone, the share wrong when deciding alone, work saved per 100 decisions (+1 right, −5 wrong, 0 handed off), and cost per run.
- In our benchmark a miscalibrated model scored −44.6 work saved per 100 decisions — worse than handing every case to a person — while error rate and latency looked completely normal.
- OpenTelemetry's GenAI conventions cover model calls and tokens; decision outcomes need a handful of your own metrics, recorded where the decision is made and again when a reviewer confirms or overturns it.
Most agent monitoring stops at the model call: how long it took, how many tokens it used, whether it errored. That catches outages. It does not tell you whether the agent is any good at its job — and that is the failure that costs the most, because nothing alerts on it.
How the agents decide
Every agent in our benchmark works the same way. A large language model reads the case and calls tools — a chat API, a CRM, an ERP, a document reader, a security search. Then a small decision model looks at the case and the question ("confirm the booking, ask for details, or reject?") and returns a probability for each option.
The agent doesn't always act on the top option. It acts alone only when that option is likely enough; otherwise the case goes to a person.
How likely is enough? Score it. A right decision made alone saves a person a few minutes: +1. A wrong one costs far more — someone has to notice it, undo it and apologise for it: −5. A case handed to a person costs nothing extra: 0.
Acting alone at confidence p is worth p × 1 − (1 − p) × 5. That is zero at p = 5/6 ≈ 83.3%. Above that, acting alone wins on average. Below it, hand it over.
Four numbers that describe decision quality
From that rule fall four numbers, per workflow:
| Number | What it counts | Healthy in our runs |
|---|---|---|
| Decided alone | decisions made without a person ÷ all decisions | 40–55% |
| Wrong when alone | automatic decisions a reviewer overturned ÷ automatic decisions | under 10% |
| Work saved per 100 | 100 × (right alone − 5 × wrong alone) ÷ all decisions | +15 to +25 |
| Cost per run | model spend ÷ agent runs | flat, per workflow |
"Wrong when alone" is divided by automatic decisions only, not by everything. It answers the question that matters: when this agent acts by itself, can I trust it? At the 83.3% threshold, it has to stay under one in six.
How we instrumented it
Model calls use OpenTelemetry's GenAI conventions, so an off-the-shelf instrumentation library for your model client records them with no code: gen_ai.client.operation.duration and gen_ai.client.token.usage, labelled by gen_ai.request.model, with error.type on failures and a span per call, tool execution and agent run.
Decisions have no convention yet, so we added a few lines around the decision model:
from opentelemetry import metrics, trace
meter = metrics.get_meter("agents")
decisions = meter.create_counter("agent.decisions")
confidence = meter.create_histogram("agent.decision.confidence")
tracer = trace.get_tracer("agents")
BREAK_EVEN = 5 / 6
with tracer.start_as_current_span("decide") as span:
probs = decision_model.predict(case, question)
option, p = max(probs.items(), key=lambda kv: kv[1])
outcome = "alone" if p >= BREAK_EVEN else "human_review"
attrs = {"agent.workflow": "support-triage",
"agent.decision.model.version": MODEL_VERSION,
"agent.decision.outcome": outcome}
confidence.record(p, attrs)
decisions.add(1, attrs)
span.set_attributes({**attrs, "agent.decision.option": option,
"agent.decision.confidence": p})When a reviewer confirms or overturns an automatic decision, the review tool adds one more count with agent.decision.outcome set to auto_right or auto_wrong. Two more metrics complete the picture: agent.cost.usd per run (tokens × price, by model) and agent.review_queue.depth, the cases waiting for a person.
The model version label matters more than it looks. When decision quality changes, the first question is always what changed? — and for agents the answer is usually a model or prompt version, not a code deploy.
The queries
With the metrics in a Prometheus-compatible store, each number is one line:
# wrong when deciding alone, per workflow
sum by (agent_workflow) (rate(agent_decisions_total{agent_decision_outcome="auto_wrong"}[10m]))
/ sum by (agent_workflow) (rate(agent_decisions_total{agent_decision_outcome=~"auto_right|auto_wrong"}[10m]))
# work saved per 100 decisions
100 * (
sum by (agent_workflow) (rate(agent_decisions_total{agent_decision_outcome="auto_right"}[10m]))
- 5 * sum by (agent_workflow) (rate(agent_decisions_total{agent_decision_outcome="auto_wrong"}[10m]))
) / sum by (agent_workflow) (rate(agent_decisions_total[10m]))
# cost per run
sum by (agent_workflow) (rate(agent_cost_usd_total[10m]))
/ sum by (agent_workflow) (rate(agent_runs_total[10m]))Five failures, and which signal caught each
Our benchmark runs four agent workflows — chat-based booking, support triage, invoice processing and security alert triage — at a few runs a second, with a schedule of failures injected every six hours. Here is what each one looked like.
| Failure | Errors | Latency | What caught it |
|---|---|---|---|
| Model provider rate-limits | up | up | ordinary request monitoring |
| ERP connector's session expires | up | flat | tool error rate |
| A prompt change makes one agent loop on tool calls | flat | up | tokens and cost per run, ×8 |
| New decision-model version is less confident | flat | flat | share handed to a person, 59% → 94% |
| Decision model loses its calibration | flat | flat | work saved per 100, +20 → −44.6 |
The last two are the ones worth building this for.
The less confident model. A new version shipped. Its top option rarely cleared 83.3%, so the agents decided alone on 6% of cases instead of about half. Nothing failed: 2.0% of runs errored, the same as before. But in half an hour roughly 1,350 extra cases landed on the review team, and the queue climbed past 600. The fix is a rollback, and the evidence is one line: the share handed to a person jumped at the minute the new version made its first decision.
59% → 94%share of decisions handed to a person after a decision-model version change, with no change in error rate or latencyThe overconfident model. The worse failure. A model that loses its calibration says "95% sure" when it is right about two times in three. It clears the threshold almost every time, so it decides alone on most cases — and a third of those are wrong. Every request succeeds. The dashboards that watch errors stay green. Work saved per 100 decisions falls from about +20 to −44.6: the agent is now doing more harm than handing every single case to a person would.
−44.6work saved per 100 decisions for an overconfident decision model — worse than having no automation at allThe loop. A prompt change made the invoice agent call the same two tools ten to eighteen times per case. Every run still finished, a little slower. Cost per run went from about two cents to over twenty. Without cost per run as its own number, this shows up on the monthly bill.
What to alert on
These are the alerts we run. None needs a hand-tuned threshold per service except the first two, which follow from the scoring:
- Work saved per 100 below zero for five minutes — the agent's automatic decisions now cost more than they save.
- Wrong when alone above 1/6 — at the 83.3% threshold, this is the same line from the other side.
- Share handed to a person far above usual — the decision model got less sure; check its version.
- Cost or tokens per run several times usual — a loop, a longer prompt, or a bigger model.
- Model or tool error rate above a few percent — the loud failures.
Better still is to not write the thresholds at all. Rocketgraph learns what is usual for each workflow, compares the last hour with it, and opens one incident per real problem — naming the version change and the minute it started, and counting the extra work it put on people.
Frequently asked questions
How do you monitor an AI agent in production?
Monitor three layers. Model calls: latency, errors and tokens per model, using OpenTelemetry's GenAI conventions. Agent runs: success, duration, tokens and cost per run, per workflow. Decisions: how often the agent acts alone, how often it is wrong when it does, and how many cases it hands to people. The first two catch outages; only the third catches an agent that is running fine and deciding badly.
What does 'wrong when deciding alone' mean?
Of the decisions the agent made without a person, the share a reviewer later overturned. It is counted only over automatic decisions, not over everything, so it measures how trustworthy the agent is when it acts by itself. With a +1 / −5 scoring it must stay below one in six, or automatic decisions lose more than they save.
What is work saved per 100 decisions?
A single score for an agent's decisions: +1 for each right decision made alone, −5 for each wrong one, and 0 for each case handed to a person, scaled to 100 decisions. Positive means the agent saves people work. Below zero means its own decisions cost more to fix than they save, and the team would be better off reviewing everything.
Why 83.3% as the threshold for acting alone?
With a right decision worth +1 and a wrong one costing −5, acting alone at confidence p is worth p − 5(1 − p), which is zero at p = 5/6 ≈ 83.3%. Above it, acting alone saves work on average; below it, handing the case to a person is the better bet. Change the costs and the threshold moves with them.
Does OpenTelemetry have conventions for AI agents?
Yes, for model calls and agent spans: gen_ai.client.operation.duration, gen_ai.client.token.usage, and attributes such as gen_ai.request.model, gen_ai.operation.name (chat, execute_tool, invoke_agent) and gen_ai.tool.name. They are still marked experimental. There is no convention yet for decision outcomes, so we added a small set of agent.* metrics of our own.

Founder & CEO, Rocketgraph
Kaushik founded Rocketgraph to make observability affordable at any scale. He writes about telemetry economics, object-storage architectures, and using AI agents to triage production incidents.