[KongchangAI]
Concept跨度 / Span

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

Timeline (last 90 days)

Oct 31

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.

Unverified50%
Oct 31

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.

Unverified50%
Oct 16

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.

Unverified50%
Oct 16

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.

Unverified50%
Oct 15

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.

Unverified50%
Oct 15

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.

Unverified50%
Oct 15

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.

Unverified50%
Oct 13

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.

Verified75%
Oct 12

OTel的核心数据模型是Span——代表一次操作的结构化记录,包含名称、起止时间、状态、属性(attributes)以及与其他span的父子关系;Trace由一组共享同一trace ID的span构成的有向无环图。

Unverified50%
Oct 7

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.

Verified65%

4 more timeline events

All Facts (17)

Verified

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%
Verified

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.

65%
Verified

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.

65%
Verified

An 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%
Unverified

The 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%
Unverified

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.

50%
Unverified

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.

50%
Unverified

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.

50%
Unverified

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.

50%
Unverified

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.

50%
Unverified

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.

50%
Unverified

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.

50%
Unverified

OTel的核心数据模型是Span——代表一次操作的结构化记录,包含名称、起止时间、状态、属性(attributes)以及与其他span的父子关系;Trace由一组共享同一trace ID的span构成的有向无环图。

50%
Unverified

The 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%
Unverified

Snapshotting key configuration and permission scopes as Span attributes into traces is an effective means of guarding against configuration drift issues.

50%
Unverified

Mainstream tracing frameworks such as OpenTelemetry generate Spans by instrumenting code and can only record what is explicitly specified to be recorded.

50%

Source Articles