What is Span?

Agent Internals
Definition

One step in a traced run, recorded with its kind, inputs, outputs, latency, and cost. Span kinds in agentic tracing include model calls, tool calls, retrievers, rerankers, guardrails, evaluators, and handoffs.

Why It Matters

A span is the atom of agent observability. Every claim you can make about a run (where it went wrong, what it cost, which decision it made) is only as true as the spans underneath it. No span, no evidence; the step happened or did not, and nobody can say which.

The vocabulary comes from OpenTelemetry’s GenAI conventions, which means agent spans land in whatever observability stack a team already runs instead of a bespoke dashboard.

The Span Kinds

Agent run. The outer span, carrying the identity, session, and tenant context that every child span inherits. Without it the children cannot be attributed to a person or a case.

Model call. One LLM invocation: the message history sent, the completion returned, the model name, and the token counts, latency, and cost for that call.

Tool call. A tool-call record: the tool requested, the exact arguments the model produced, and the result it got back.

Retriever. A fetch from the index: what was searched, and which candidates came back.

Reranker. The re-ordering pass before candidates enter context: what survived the rerank and what was dropped.

Guardrail. A policy check that ran: the injection screen, the personal-data screen, or the policy rule, and whether it passed or flagged.

Evaluator. An eval scoring attached to the run that produced it: the rubric, the score, and the judge.

Handoff. A task transfer between agents: what crossed the boundary and to whom.

Where It Breaks

Spans fail by absence. A step that was never instrumented is a hole in the trajectory, and incidents have a way of happening in exactly the uninstrumented parts. The second failure is spans without attribution: latency and cost recorded nowhere means the run’s expense is discovered on an invoice, not in a trace.

Sampling is the quieter break. Dropping telemetry to save cost deletes precisely the unusual runs that would have needed inspection.

How Flytebit Handles It

Full-trajectory tracing is the first thing we instrument in an observability engagement: every span kind captured, per-call cost attributed, nothing sampled away. The reasoning behind trajectory-first observability is in Observability for Agentic AI Governance.

More info

On flytebit.com

Reviewed by Jayaveer Bhupalam, Founder & CTO Last updated September 24, 2026