# Agent observability

Canonical page: https://www.theglitch.ai/ai-glossary/agent-observability

Capturing structured traces of every step inside an agent run — prompts, retrieved context, tool inputs and outputs, token counts, latency and stop reasons — so failures can be reproduced and debugged.

[Agent observability, common card \#259 in The Glitch AI glossary: Capturing structured traces of every step inside an agent run — prompts, retrieved context, tool inputs and outputs, token counts, latency and stop reasons — so failures can be reproduced and debugged.](https://www.theglitch.ai/images/cards/glossary/agent-observability.png?v=f25e684218d24286)

GLS 259 · common

Also called: Agent tracing, LLM tracing.

For: Builders · Leaders

## Why it matters

Unlike deterministic APIs, agents fail silently in multi-step chains. Without step-level traces, teams guess at prompt edits instead of seeing which tool call or stale retrieval caused the bad outcome.

## In practice

A support agent refunds the wrong order. Its OpenTelemetry trace shows turn 2 called lookup\_order with a stale email from turn 1 and turn 3 ignored a 404 fallback; the team adds a regression eval for that exact trace in ten minutes.

## Watch for

Raw traces often capture customer PII, API keys or sensitive prompts. Scrub secrets before shipping spans to third-party observability vendors and set short retention windows.

## How it compares

- [Evaluation](https://www.theglitch.ai/ai-glossary/evaluation): Observability records what happened during live or test runs; evaluation scores whether those outputs met your quality bar.

- [LLMOps](https://www.theglitch.ai/ai-glossary/llmops): LLMOps covers the full deployment lifecycle (routing, versioning, budgets, monitoring); agent observability is the step-by-step tracing slice that shows how multi-turn runs behaved.

## Related terms

[LLMOps](https://www.theglitch.ai/ai-glossary/llmops) · [Evaluation](https://www.theglitch.ai/ai-glossary/evaluation) · [Agent harness](https://www.theglitch.ai/ai-glossary/agent-harness) · [Agent checkpointing](https://www.theglitch.ai/ai-glossary/agent-checkpointing)

## Try it here

[How AI agents fail in production](https://www.theglitch.ai/learn/agent-failure-modes) · [Debugging with AI](https://www.theglitch.ai/learn/debugging-with-ai)

## Sources

- [OpenTelemetry · Generative AI Semantic Conventions](https://github.com/open-telemetry/semantic-conventions/tree/main/docs/gen-ai)

- [Anthropic · Demystifying evals for AI agents](https://www.anthropic.com/research/demystifying-evals-for-ai-agents)

Use in an AI agent: connect MCP at https://www.theglitch.ai/mcp and call get\_glossary\_term with agent-observability, or read the [Markdown edition](https://www.theglitch.ai/ai-glossary/agent-observability.md).

Definition updated 2026-11-28.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
