Agent Observability Defined
Distributed tracing was built to answer a specific question: what happened, in what order, across which services, during a single request. OpenTelemetry formalizes this as a trace, a directed representation of a request's execution path composed of spans. Each span captures an operation name, start and end timestamps, and its relationship to parent and child spans, allowing engineers to reconstruct how a request moved through a distributed system. The W3C Trace Context specification extends this by standardizing how trace-id and span-id values propagate across service boundaries through HTTP headers, so spans generated by different services can be correlated into one coherent trace.
Agent observability applies the same structural idea, a trace composed of correlated spans, to AI agent execution. Instead of representing only service calls, an agent trace needs to represent planning steps, tool invocations, the identity under which each action ran, and the outcome of any policy check applied to that action. The mechanics are unchanged. What changes is what the spans are required to contain.
Why Application Observability Was Not Built for Agent Execution
Conventional application tracing was designed around service calls and database queries, not around tool invocation by a semi-autonomous system. The Model Context Protocol (MCP), published by Anthropic as an open specification, gives agent tool calls a defined structure to work with. MCP separates hosts, clients, and servers, and defines tool invocation and resource access as explicit protocol-level messages rather than opaque application logic. That structure gives implementers a defined point at which to capture what tool was called, with what arguments, and under whose authority.
The gap is that MCP does not natively embed W3C Trace Context headers, so correlating a tool-call event with the broader distributed trace requires deliberate instrumentation at the client-server boundary. Left uninstrumented, a tool call executed by an agent can become an orphaned event: technically logged, but not connected to the trace that would explain why it happened, who initiated it, or under what delegated permission it ran.
Instrumentation and Retention Decisions
Traces as Governance Evidence, Not Just Debugging Telemetry
NIST's AI Risk Management Framework identifies documentation and traceability of AI system behavior as components supporting the Govern and Map functions, treating them as accountability mechanisms rather than pure debugging aids. That framing matters for how agent traces are designed. A trace built only to help an engineer diagnose a failed tool call will not necessarily contain the identity, permission scope, and policy outcome a security or compliance reviewer needs to reconstruct what an agent did and whether it was authorized to do it.
No single agreed standard yet exists for agent-specific trace schemas. OpenTelemetry's generative AI semantic conventions remain under active development, and field-level implementations vary across tooling. Teams building toward auditability today are, in effect, making architectural choices ahead of a settled standard, which creates some interoperability risk when trace data is later used as cross-vendor audit evidence.