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.
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

Related terms

LLMOps · Evaluation · Agent harness · Agent checkpointing

Try it here

How AI agents fail in production · Debugging with AI

Sources

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.

Definition updated 2026-11-28.

The Ultimate AI Glossary (2027): every term