Index Ai Academy
Glossary · Phase 10 · Agent harnesses

Context propagation

Also written: trace propagation

Sending the trace id and the caller's span id with every call to another program, so that its spans join the same trace.

Try it now

Step through the spans. Switch to the broken view: the header is dropped at one hop, and everything below it floats free.

Learn it properly

Tracing a run end to end · Follow one run across an orchestrator, subagents and tool servers: trace ids, the traceparent header, the critical path, tokens by branch, and which traces to keep. About 45 minutes.

Other terms from the same lesson

  • head sampling: Deciding whether to keep a trace when the run starts, before anything is known about how it will go.
  • tail sampling: Deciding whether to keep a trace once the run is over, so that every failed or slow run can be kept.
  • trace id: The id shared by every span of one run, whichever program recorded it, so the whole run can be gathered and rebuilt.
  • traceparent: The standard HTTP header that carries a trace across a call: a version, the trace id, the caller's span id and a flag that says whether the trace is being kept.
Keep learning

More in plain English.

1286 terms in the glossary, each with the lesson that teaches it.

1286 terms

The glossary

Every word you'll meet in AI and machine learning, explained in everyday language.

Phase 10 · lesson 45 min

Tracing a run end to end

Follow one run across an orchestrator, subagents and tool servers: trace ids, the traceparent header, the critical path, tokens by branch, and which traces to keep.

Never trained an AI? Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account. Teach it to write