An AI assistant can appear healthy while quietly failing users. Its web server responds, the model API returns a response, and the dashboard shows normal uptime—but the agent may be calling the wrong tool, repeating a search, timing out on a business API, or producing an answer that does not complete the task. Traditional application monitoring rarely explains that entire chain.
That is the problem AI observability is meant to solve. It gives developers and operators a way to inspect how an AI workflow behaved: which model ran, which tools were called, where time was spent, what failed, how much usage accumulated, and whether the task actually reached a useful outcome.
Research checked: 20 November 2026.

What is AI observability?
AI observability is the practice of collecting and analyzing evidence about an AI application while it runs. For a simple text-generation feature, that may mean recording model latency, token usage, errors, and request identifiers. For an agent, it also means following the sequence of decisions and actions across tools, sub-agents, retrieval systems, guardrails, and human approvals.
Think of it as three connected layers:
- Service health: Is the application available? Are requests timing out? Are queues, databases, and external APIs healthy?
- Execution traces: What happened inside one request—from the initial user message to model calls, tool calls, handoffs, retries, and the final response?
- Outcome quality: Did the workflow solve the user’s problem, follow the required policy, and avoid an unnecessary escalation?
These layers answer different questions. A trace can explain why an agent took 18 seconds, but it cannot by itself prove that the final answer was correct. Pair observability with task-specific evaluation and user feedback.
Why ordinary logs are not enough for AI agents
A conventional application request often follows a predictable path: receive input, run business logic, query a database, return a result. An agent can take a different path on each run. It may ask a model to choose a tool, inspect the result, call another tool, hand work to a specialist agent, or retry after an error.
If the only record is the final answer, debugging becomes guesswork. If logs are scattered across services without a shared request or trace identifier, an engineer may not know which model call belongs to which tool result. A structured trace connects those events into one timeline.
This is especially useful for customer-support assistants, research agents, coding agents, workflow automation, and systems that use the Model Context Protocol (MCP) to connect models with external tools.
What a useful AI trace should capture
1. The overall workflow
Give each end-to-end task a trace ID and a clear workflow name, such as order_support or invoice_review. Record a safe request identifier, start and end times, final status, and the application version. If several agent runs belong to one conversation, link them with a conversation or session identifier that does not expose a customer’s identity.
2. Model activity
For each model call, capture the provider and model identifier, duration, outcome, token counts when available, retry count, and a correlation ID. Keep model configuration or prompt version information where it helps reproduce a behavior. Record only the input and output detail your debugging process genuinely needs.
3. Tool calls and handoffs
Treat each tool call as its own timed operation. Record the tool name, a safe summary of the arguments, result status, duration, and any error category. For an agent handoff, record the source agent, destination agent, and whether the delegated work completed. This makes it easier to distinguish a model reasoning issue from a slow or unreliable external service.
4. Guardrails, approvals, and retrieval
Record whether a guardrail passed or blocked an action, whether a human approval was requested, and whether it was granted. If the workflow retrieves documents, capture the retrieval operation, source identifiers, result count, and latency. Avoid storing entire private documents or secrets simply because the tracing system can accept them.
The metrics worth watching
A dashboard should help an operator decide what to investigate. Start with a small set of measures and split them by workflow, model, tool, and application version where the volume supports it.
- End-to-end latency: Track median and 95th-percentile duration, not just an average that can hide slow outliers.
- Model and tool errors: Separate provider failures, timeouts, invalid tool arguments, permission denials, and application bugs.
- Tool-call reliability: Measure successful calls, failed calls, retries, and repeated calls that do not add useful information.
- Usage and cost: Track input/output tokens or the provider’s equivalent usage data, then estimate cost per workflow and per successfully completed task.
- Completion and escalation: Measure whether the task reached its intended end state, required a human, or was abandoned.
- Policy events: Count blocked actions, approval requests, and other guardrail outcomes without turning sensitive policy details into broadly accessible logs.
Do not optimize only for the cheapest or fastest response. A lower-cost agent that fails more often may cost more once retries, human intervention, and customer frustration are included. A useful operational view compares cost and latency with successful task completion.
Tools and standards you can use
OpenAI Agents SDK tracing
The current OpenAI Agents SDK observability guide documents built-in tracing for server-side SDK runs. Its traces can include the overall workflow, model calls, tool calls and outputs, handoffs, guardrails, and custom spans. The guide describes using the trace dashboard to debug an individual run and then using higher-signal examples as input to repeatable workflow evaluation.
If your application uses this SDK, begin with its native tracing rather than building a parallel event system immediately. Check the SDK’s current configuration and data-handling options before enabling it in production, especially if prompts or tool outputs may contain personal or confidential information.
OpenTelemetry GenAI conventions
For teams working across several model providers or frameworks, OpenTelemetry’s GenAI semantic-conventions repository is a useful place to study common names and structures for generative-AI spans, metrics, and events, including MCP and provider-specific conventions. The repository is actively maintained; its README currently marks the schema URL section as a TODO. Treat the conventions as an evolving integration surface: check the current definitions when upgrading and keep your own application code behind a small instrumentation adapter instead of scattering convention-specific field names everywhere.
Google Cloud Application Monitoring
Google Cloud’s AI resources monitoring documentation, last updated 18 November 2026, describes dashboards built from trace data that follows OpenTelemetry GenAI semantic conventions. The documented views include error rate, latency, token usage, agent activity, and tool-call error rate and P95 latency. The setup requires registered applications and services in App Hub, the relevant observability APIs, and telemetry that follows the conventions; it is not an automatic dashboard for an uninstrumented app.
A practical rollout plan
- Define one important workflow. Start with a task that matters to users, such as checking an order or preparing a support response. Write down what counts as successful completion.
- Instrument the full path. Create one trace per task and spans for model calls, tools, retrieval, handoffs, approvals, and important application operations.
- Standardize a small set of fields. Include workflow name, environment, application version, model, tool, status, duration, usage, and trace ID. Use consistent names across services.
- Protect the data. Redact credentials, tokens, payment details, and unnecessary personal information before export. Set access controls and retention periods. Do not assume a tracing vendor’s default retention or access model matches your obligations.
- Build a focused dashboard. Show task volume, completion, latency, error rates, tool reliability, escalation, and usage. Break down by model or tool to isolate regressions.
- Review real traces every week. Inspect failed and unusually slow runs, identify recurring causes, and turn representative examples into regression tests.
Example: diagnosing a slow customer-support agent
Imagine a customer asks an agent to check an order and explain a delivery delay. The trace shows that the first model call took 1.2 seconds, the order-lookup tool took 0.3 seconds, and a shipping-status API timed out twice before returning. The final model response then took another 1.5 seconds. Without a trace, the team might blame the language model because the user experienced a slow answer. With the timeline, the external shipping service is the obvious bottleneck.
A second trace might show normal latency but three repeated calls to the same search tool. That points to an orchestration or stopping-condition problem, not an infrastructure outage. In both cases, the trace gives the team a concrete place to investigate.
Privacy and operational guardrails
Observability data can become a sensitive data store. Prompts may contain customer messages; tool arguments may contain account identifiers; outputs may include private records. Apply least-privilege access, redact before export, separate production and test environments, and define how long traces are retained. Where possible, store references to protected records instead of copying their contents into telemetry.
Also monitor the monitoring pipeline. If trace export fails silently, dashboards can look reassuring while data is missing. Track dropped telemetry, export errors, and sampling rates, and make sure sampling does not systematically remove the rare failure cases you need to investigate.
AI observability is not the same as AI evaluation
Observability tells you what happened during a run. Evaluation asks whether the behavior was good enough. For example, a trace can show that an agent retrieved three documents and called a shipping API. A separate evaluation can judge whether the documents supported the answer, whether the right order was selected, and whether the response followed business policy.
For a broader quality process, pair this guide with our practical guide to evaluating AI models before deployment. For workflows with powerful tools, also review our AI agent security checklist.
Conclusion
AI observability turns an opaque agent run into a sequence that teams can inspect, measure, and improve. Start with one important workflow, trace its model and tool activity end to end, watch a few outcome-focused metrics, and protect the data collected along the way. You do not need a complex platform on day one. You do need enough evidence to explain what happened when an AI system behaves unexpectedly.
1 thought on “AI Observability in 2026: How to Monitor Agents, Tool Calls, Cost and Reliability”
Comments are closed.