Definition

Trace

A trace groups related recorded operations for a request or workflow. Its spans share a trace ID and usually form a parent-child tree. A span link can also record a relationship to a span within the same trace or a different one. An AI trace can include model calls, retrieval and tool operations. Coverage depends on instrumentation, sampling and successful export.

Follow a request across two services

Imagine a support endpoint calls a separate search service. The client span forwards its trace context. Search creates a server span with the same trace ID and the client span as parent. That makes the handoff visible even if each service stores logs separately. If the search span is absent, check context propagation, sampling and export before drawing a conclusion about what executed.

OpenTelemetry context propagation

Intelligence at Scale by Shashank Agarwal

Trace 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