Skip to content

Give each agent run a trace ID, record every model call and tool call as a span, and keep the inputs and outputs so you can replay a bad decision.

Last checked 7 October 2026

What tracing an agent means

Who runs into this

The problem

How it works

Why it matters for AI-written code

Alternatives and how they compare

How to use it in your app

Learn it in depth

Sources

Last checked 7 October 2026 against the sources above.

Found a mistake? Tell us.