Every call toDocumentation Index
Fetch the complete documentation index at: https://docs.trodo.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
wrapAgent becomes a run in your dashboard. Every LLM call, tool invocation, retrieval, and nested step inside that run becomes a span. Most spans are captured for free from the frameworks you already use — OpenAI, Anthropic, LangChain, LlamaIndex, Bedrock, Cohere, Gemini, Vertex, Mistral, Vercel AI SDK. You only write tracing code when you want something the auto-instrument doesn’t know about (a custom tool, a DB query, a raw fetch to an LLM).
The three primitives
| Primitive | Page |
|---|---|
wrapAgent — records one run | wrapAgent |
withSpan — records a nested step inside the run | Spans |
joinRun — emits spans from code outside the wrapAgent callback (worker, queue, separate service) | Spans outside wrapAgent |
tool, llm, trace, retrieval), trackLlmCall, feedback, custom attributes, error semantics, token extraction — is a thin wrapper or sugar over those three. See Patterns.
Pipeline
Once per process
wrapAgent anywhere in the process produces a run. Call once at boot; do not re-init per request.