Definition

Span

A span records an instrumented operation with a name, timing and identifiers. It can carry status, selected attributes, events and links. A span can be a child of another span, such as a retrieval operation within a request. Keep the attributes needed for diagnosis and control which sensitive payloads enter telemetry.

Read elapsed time when child operations overlap

A request lasts from 0 to 120 ms on one clock. Retrieval runs from 10 to 70 ms, and a permissions check runs from 30 to 90 ms. Both children last 60 ms, yet they overlap for 40 ms. Their combined occupied window is 80 ms. Read parent duration and child timestamps before deciding which operation contributed most to end-to-end latency.

OpenTelemetry tracing concepts

Intelligence at Scale by Shashank Agarwal

Span diagram from Intelligence at Scale
Diagram from chapter 13, Production AI: Deployment, Monitoring, and Evaluation

Explained in

Chapter 13: Production AI: Deployment, Monitoring, and Evaluation

The reality of running AI agents. It's nothing like the demo.

Related terms

This is one term. The chapter is the argument.

Intelligence at Scale: 22 chapters, 65,000 words, 80-plus diagrams. Kindle, paperback and hardcover on Amazon.

Buy on Amazon.com
← All terms