ChangeGamer

← All resources

Agent Observability and Tracing

Guide · updated 2026-06-15 · Markdown variant

Why agents need observability beyond app logs, how OpenTelemetry GenAI semantic conventions model agent runs as traces, key signals to capture, and a verified tooling landscape.


Standard application logging — a flat stream of timestamped lines — cannot answer "why did the agent do that?" Agent runs are non-deterministic, multi-step, and branching. A single run may spawn dozens of LLM calls, tool calls, and sub-agent delegations. Without structured tracing, debugging is guesswork and cost attribution is impossible.

The span/trace model maps naturally to agent runs

OpenTelemetry's span/trace model fits agents well:

This maps directly to what agent builders need: a tree view of every decision, the inputs and outputs at each node, latency per step, and a single ID to correlate across services.

OpenTelemetry GenAI semantic conventions

The OpenTelemetry GenAI SIG (formed April 2024) defines vendor-neutral attribute names, span types, events, and metrics for LLM and agent workloads. As of June 2026 the conventions have Development status (formerly called experimental) — the attribute names carry a stability opt-in flag (gen_ai_latest_experimental) and may still change, but major observability vendors already support them.

Coverage breaks into four areas:

Key gen_ai.* attributes: gen_ai.system, gen_ai.request.model, gen_ai.usage.input_tokens, gen_ai.usage.output_tokens, gen_ai.tool.name.

Key signals to capture per agent run

Tooling landscape

Open-source / vendor-neutral

Framework-native

Evals + observability connection

Traces are the raw material for both offline eval and online monitoring. Stored traces feed evaluation datasets (sample a slice of production runs → score with an LLM judge or deterministic metric). Online monitoring alerts on anomalous patterns in the live trace stream. See /resources/evaluating-ai-agents for eval methodology and /resources/agent-frameworks-compared for framework-native tracing details.

Verified sources

#observability #tracing #opentelemetry #agents #debugging #evals

Category: Guide