Why Agentic AI Breaks Traditional Observability

Most production AI today behaves like a function call: prompt goes in, response comes out, latency and token cost get logged. Agentic AI breaks that mental model entirely. A single user request can fan out into 5 to 50 sub-tasks spanning tool calls, code execution, retrieval queries, and self-critique loops, often running for 60 seconds or more before a final answer surfaces. Traditional APM traces, which assume short, mostly synchronous spans, cannot represent a planning branch that retries itself three times before settling on a tool. As a result, teams often see "agent died" or "agent looped forever" alerts that have no underlying span data to explain them.

Also worth reading: What are the best agentic AI monitoring tools in 2026 for ensuring security and observability? · What are the best practices for implementing AI agent credential vaulting in production architectures? · How do I effectively implement verifier agent evaluation metrics for production-grade AI systems?

A second source of friction is non-determinism. Two identical inputs can produce two different action paths because the model chooses between tools based on temperature-sampled reasoning. This makes p95 latency misleading and error rates unstable week over week. Observability for agentic systems therefore needs to record not just the request and response, but the entire decision graph: which tools were available, which were selected, which were rejected, and what the agent believed about the world at each step. Without that decision graph, debugging an agent that hallucinates a tool name or takes seven unnecessary steps is essentially guesswork.

Finally, agents carry persistent state across turns, including short-term memory, long-term memory, scratchpads, and tool-derived context. Most existing observability pipelines assume stateless services and treat logs, metrics, and traces as independent streams. For agents, those three pillars need to be re-correlated by a shared session identifier so an evaluator can replay what the agent knew, said, and did during a single user task. This requirement is the foundation of nearly every practical recommendation that follows.

Core Signals You Must Capture

Every production agent should emit, at minimum, six signal categories. First, a hierarchical trace where the root span is the user request and each child span is a reasoning step, tool invocation, or sub-agent delegation. Spans should carry a trace ID, a parent span ID, an agent name, and a step index so they can be reassembled into a tree. Second, the exact prompt, tool schema, and tool response for every LLM and tool call, stored with PII redaction applied at the edge before the payload reaches durable storage. Third, token counts broken down by prompt, completion, cached, and reasoning tokens, because reasoning tokens can quietly double cost.

Fourth, outcome signals: task success, partial success, user satisfaction, escalation to a human, and abandonment. These are usually computed by a separate evaluator rather than the agent itself, and they should be joined to the trace by the same session ID. Fifth, safety signals including jailbreak attempts, prompt-injection matches, and policy violations, ideally tagged with a rule version so regressions can be attributed. Sixth, cost signals, calculated from token usage multiplied by the model price list on the day of the call, plus tool compute and retrieval spend. A useful rule of thumb is to budget cost per session and alert when the 24-hour rolling average drifts more than 20 percent above the trailing seven-day median.

A common mistake is to log only the final response and forget the trajectory. Teams that do this usually discover, three months later, that they cannot answer basic questions like "why did the agent call the refund API on this ticket but not on that one." Capturing the trajectory is the single highest-leverage change most teams can make.

Tracing Architecture: Spans, Sessions, and Decision Logs

A well-designed trace tree for an agent looks like a document outline. The root is the user request. Underneath it sit high-level phases such as "intake," "planning," "execution," and "verification." Each phase contains reasoning steps, which in turn contain tool calls or LLM calls. Sub-agents appear as their own sub-trees, which makes it easy to see when one agent delegates work to another and whether the delegation produced the expected answer. Spans should be small (under 30 seconds) and tagged with a step type so they can be filtered efficiently.

Decision logs sit alongside the trace and capture the "why" that the trace alone cannot represent. For each step, record the available actions, the model's ranking or sampling choice, the rejection reasons for unselected actions, and any self-critique output. Storing these as structured JSON in a columnar store such as ClickHouse, DuckDB, or BigQuery keeps query cost low even when retaining 90 days of data. A typical retention policy looks like 30 days of full traces, 90 days of metadata, and 365 days of aggregate metrics, though regulated industries often extend all three.

Two technical choices matter more than the vendor. The first is to standardize on OpenTelemetry as the wire format for spans and metrics, even if the agent runtime is custom, because it future-proofs against vendor lock-in. The second is to assign each session a UUID v7 identifier at the very first request and propagate it through every downstream call. Without this discipline, joins between the user-facing product analytics and the agent telemetry fall apart within weeks.

Evaluations, Guardrails, and Online vs. Offline Testing

Observability without evaluation is just logging. Production agents need two parallel evaluation loops. Offline evaluation runs curated datasets of hundreds to thousands of tasks against a candidate model or prompt change and reports pass rates, cost, and latency before any deploy. Online evaluation runs on every production trace, typically using a cheaper grader model to score trajectories against rubric criteria such as factual grounding, tool correctness, and tone. Both should be wired into the same dashboard so regressions appear within an hour rather than after a customer complaint.

Guardrails are the third layer and they sit in the request path. Common guardrails include PII redaction, jailbreak detection, profanity filtering, and maximum tool-call limits. A practical ceiling is 15 tool calls per task and 10 minutes wall-clock per session, after which the agent should return a graceful "I need help" response rather than burning more tokens. Microsoft, AWS, and IBM published similar limits in their 2025 production guidance, and teams that ignore them usually see runaway loops during the first month of traffic.

The biggest mistake is conflating offline and online evaluation. A model that scores 95 percent on a hand-crafted test set can still score 60 percent on production traffic because the test set never covered real users' phrasing. Always sample at least 1 to 5 percent of production traffic for human review, and use those reviewed sessions to grow the offline dataset in a weekly cadence.

Comparing Tooling Categories for Agent Observability

The market for agent observability has split into four rough categories, each with clear tradeoffs. The table below summarizes what to expect from each.

FeatureLLM-Native PlatformsAPM Vendors (Datadog, Dynatrace)Open-Source StacksCustom + Data Warehouse
Trajectory replayNative, fullLimited, sampledNative if configuredBuild yourself
OpenTelemetry supportVaries, often partialStrongStrongStrong
Evaluator hostingBuilt-inOften externalPlug-in basedBring your own
Time to first trace1 to 2 days1 to 2 weeks3 to 5 days2 to 4 weeks
Cost at 10M traces/month$2k to $8k$5k to $20k$200 to $1k infra$500 to $2k infra
Vendor lock-in riskHighHighLowLowest
Best fitTeams without ML platformEnterprises with existing APMStartups wanting controlData-heavy orgs with warehouse
LLM-native platforms (Arize Phoenix, LangSmith, Helicone, Langfuse Cloud) ship fastest and offer trajectory replay out of the box, but they tend to charge per trace and can become expensive past 10 million traces per month. APM vendors are best when the agent runs inside an existing Kubernetes estate and the team already pays for Datadog or Dynatrace, though their agent-specific features are still maturing in 2026. Open-source stacks (Langfuse self-hosted, OpenLLMetry, Phoenix OSS) give full control at low cost but require a platform engineer to keep them healthy. The warehouse approach, sending OTel spans to ClickHouse or Snowflake and building dashboards in Superset or Hex, is the most flexible but takes weeks longer to first dashboard.

Common Mistakes and How to Avoid Them

The most frequent mistake is treating cost as a finance metric rather than an engineering metric. Token spend is a leading indicator of prompt bloat, unnecessary tool calls, and runaway loops. Teams that surface cost per session on the same dashboard as success rate usually cut spend by 30 to 50 percent within a quarter without touching the model. The second mistake is logging too much PII. Free-form chat payloads often contain emails, addresses, and account numbers, and storing them in clear text creates a compliance incident waiting to happen. Apply redaction at the agent boundary, not at query time.

The third mistake is ignoring tool-level errors. If 12 percent of "send_email" calls return a 500 from the downstream API, that is a product bug masquerading as an agent bug. Instrument every tool with its own error rate, p95 latency, and a synthetic check that runs every five minutes. The fourth mistake is over-relying on the grader model. Evaluator models hallucinate too, especially on subjective criteria like "was the response empathetic," so always pair automated grading with sampled human review. Finally, teams often skip load testing agents. A single agent session can hold open 8 to 12 HTTP connections and 2 to 4 GB of memory if it accumulates context; under realistic load this behaves very differently from a stateless API.

When to Invest in Dedicated Agent Observability

The short answer is earlier than most teams think. Once an agent handles any user-facing traffic, has more than three tools, or runs longer than ten seconds, the value of dedicated instrumentation usually exceeds its cost within the first month. A useful gating checklist: are you paying more than $500 per month in model spend, do you have a customer-visible failure mode that support cannot explain, and do you need to A/B test prompts safely. If two of those three are true, the team should stop relying on ad-hoc logs and invest in a proper pipeline.

For very early prototypes under 1,000 sessions per day, a lightweight setup, such as Langfuse self-hosted or Helicone's free tier plus a Notion dashboard, is usually enough. Between 1,000 and 100,000 sessions per day, expect to spend two engineer-weeks wiring OpenTelemetry exporters and a grader loop. Beyond that, most organizations adopt a dedicated platform team because the volume of traces, evaluations, and safety reviews becomes a full-time job. The September 2026 ecosystem is mature enough that the question is no longer whether to instrument agents, but which pipeline to standardize on before the second production incident forces the decision.

FAQ Sources and Further Reading

For practitioners building on this guidance, three starting points cover most of the ground. Microsoft's 2025 writeup on observability for AI systems and AWS's 2025 lessons-from-production post explain the enterprise perspective. The New Stack's coverage of why AI workloads break Kubernetes observability highlights infrastructure pitfalls. For open-source tooling, Whispey's 2025 launch on Hacker News and the OpenLLMetry project documentation are good references. IBM's AI agent testing explainer rounds out the evaluation side.