Span
The fundamental unit of distributed tracing, representing a single operation or step within a complete trace. It contains metadata such as inputs and outputs, timing, status, and parent-child relationships, enabling precise identification of where issues occur.
Core Facts
A trace represents the complete lifecycle of a request or transaction and consists of several spans; each span records an operation with a start and end time and carries a name, attributes, events, and status; spans form a directed acyclic graph through parent-child relationships.
An execution trace refers to a structured record of all operational steps throughout a complete task execution, including the inputs and outputs of each LLM call, tool call parameters and return values, intermediate reasoning states, and timestamps with timing information.
In agent scenarios, a complete agent task should be treated as a single Trace, with each LLM call, tool call, and memory retrieval being a Span.
Timeline (last 90 days)
The concepts of Trace and Span originate from distributed tracing systems (such as Jaeger and Zipkin): a complete request chain is modeled as a Trace, and each operation unit in the chain is a Span, with Spans forming a directed acyclic graph through parent-child relationships.
telemetry.dev maps each run of an AI agent to a Trace, with each model call and tool call being a Span within the Trace, attached with latency, token usage, cost and error information.
In distributed tracing, a Trace represents one complete end-to-end request flow, a Run usually refers to one complete task lifecycle of Agent execution, and a Span is the smallest unit of work within a Trace; a Run often contains dozens or even hundreds of Spans, forming a tree-shaped causal relationship through parent_id.
The solution is to raise the sampling unit from Span to Run: a run is either fully recorded or fully summarized, with no partial runs or orphan Spans.
Storing high-dimensional embedding vectors (such as 768- or 1536-dimensional float arrays) in span attributes bloats the payload, increases serialization overhead, exhausts the memory of downstream storage engines, and is unreadable to humans.
In LLM applications, a single user question typically corresponds to one trace, and the internal model calls, vector retrievals, and tool executions are each a child span.
A span is the smallest unit of work in distributed tracing, representing an operation with a start time, end time, and metadata, and multiple spans are combined into a trace through parent-child relationships or links.
A trace represents the complete lifecycle of a request or transaction and consists of several spans; each span records an operation with a start and end time and carries a name, attributes, events, and status; spans form a directed acyclic graph through parent-child relationships.
OTel的核心数据模型是Span——代表一次操作的结构化记录,包含名称、起止时间、状态、属性(attributes)以及与其他span的父子关系;Trace由一组共享同一trace ID的span构成的有向无环图。
An execution trace refers to a structured record of all operational steps throughout a complete task execution, including the inputs and outputs of each LLM call, tool call parameters and return values, intermediate reasoning states, and timestamps with timing information.
4 more timeline events
All Facts (17)
A trace represents the complete lifecycle of a request or transaction and consists of several spans; each span records an operation with a start and end time and carries a name, attributes, events, and status; spans form a directed acyclic graph through parent-child relationships.
75%VerifiedAn execution trace refers to a structured record of all operational steps throughout a complete task execution, including the inputs and outputs of each LLM call, tool call parameters and return values, intermediate reasoning states, and timestamps with timing information.
65%VerifiedIn agent scenarios, a complete agent task should be treated as a single Trace, with each LLM call, tool call, and memory retrieval being a Span.
65%VerifiedAn AI Agent session is essentially an independent runtime context that completes tool registration during the initialization phase and fixes the tool registry as a snapshot from startup time; active sessions cannot dynamically detect configuration changes.
65%Unverified事件日志中的事件天然对应分布式追踪中的Span概念,每个事件可携带TraceID和SpanID来还原完整的因果链路
85%UnverifiedThe concept of Trace (distributed tracing) is borrowed from the OpenTelemetry standard in the distributed systems field, with the core idea of generating a globally unique Trace ID for a complete request and passing it to each sub-call (Span).
60%UnverifiedThe concepts of Trace and Span originate from distributed tracing systems (such as Jaeger and Zipkin): a complete request chain is modeled as a Trace, and each operation unit in the chain is a Span, with Spans forming a directed acyclic graph through parent-child relationships.
50%Unverifiedtelemetry.dev maps each run of an AI agent to a Trace, with each model call and tool call being a Span within the Trace, attached with latency, token usage, cost and error information.
50%UnverifiedIn distributed tracing, a Trace represents one complete end-to-end request flow, a Run usually refers to one complete task lifecycle of Agent execution, and a Span is the smallest unit of work within a Trace; a Run often contains dozens or even hundreds of Spans, forming a tree-shaped causal relationship through parent_id.
50%UnverifiedThe solution is to raise the sampling unit from Span to Run: a run is either fully recorded or fully summarized, with no partial runs or orphan Spans.
50%UnverifiedStoring high-dimensional embedding vectors (such as 768- or 1536-dimensional float arrays) in span attributes bloats the payload, increases serialization overhead, exhausts the memory of downstream storage engines, and is unreadable to humans.
50%UnverifiedIn LLM applications, a single user question typically corresponds to one trace, and the internal model calls, vector retrievals, and tool executions are each a child span.
50%UnverifiedA span is the smallest unit of work in distributed tracing, representing an operation with a start time, end time, and metadata, and multiple spans are combined into a trace through parent-child relationships or links.
50%UnverifiedOTel的核心数据模型是Span——代表一次操作的结构化记录,包含名称、起止时间、状态、属性(attributes)以及与其他span的父子关系;Trace由一组共享同一trace ID的span构成的有向无环图。
50%UnverifiedThe trace structure displayed in Phoenix is essentially a tree of Spans, where each Span represents a discrete operation and records the start time, end time, input parameters, and return values.
50%UnverifiedSnapshotting key configuration and permission scopes as Span attributes into traces is an effective means of guarding against configuration drift issues.
50%UnverifiedMainstream tracing frameworks such as OpenTelemetry generate Spans by instrumenting code and can only record what is explicitly specified to be recorded.
50%