Tracing

Overview

Trace every run of your AI agent: each model call, tool call and step, with its input, output, time, tokens and cost. The traces every other part of Trodo reads.

Trodo records each run of your agent as a trace: the run, and a tree of spans under it for every model call, tool call and step, each with its input, output, duration, tokens and cost. You add one init call and one wrap around your agent; model calls from supported SDKs and frameworks are captured on their own.

A run open in Traces: run totals, the span tree with each span's time and cost, the Scores and Annotations tabs, and the selected span's input, output and metadata.

Traces are the input to everything else. Evals score them, Failures and Issues group what went wrong in them, Alerts watch them, Lucid answers questions over them, and Datasets are built from them. None of those needs anything sent beyond the trace.

Get set up

Send your first trace. Install the SDK, wrap your agent, see the run in Traces. A coding agent can do it for you.

Learn the model. Runs, spans, conversations and users: what each is and which IDs tie them together.

Add what your evals and filters need. Who the user is (Users), which turns belong together (Conversations), and anything you want to filter on (Metadata).

Where to go next

You have…Read
OpenAI, Anthropic, LangChain, the Vercel AI SDK…Frameworks
Steps that aren't model calls (tools, retrieval, your own logic)Manual spans
Sub-agents or an orchestratorMulti-agent
A run that spans requests, queues or workersLong-running runs
A run that calls your other servicesDistributed tracing
An OpenTelemetry pipeline alreadyOpenTelemetry
An MCP serverTrace your MCP server
Serverless, scripts or batch jobsDelivery & runtimes

On this page