Install
- Python
- TypeScript
Set up
- Python
- TypeScript
Usage
Once initialized, all agent runs and tool calls are captured automatically:- Python
- TypeScript
Verify
Run your code and confirm the trace arrives:- In the TraceRoot UI: Navigate to Tracing > Traces in TraceRoot Cloud. You should see a trace whose root span is the agent run’s workflow name —
Agent workflowunless you set your own, anddemo_sessionin the shipped examples, which wrap the run withobserve. - Via the CLI: Run
traceroot traces listto inspect your recent traces from the terminal.
What gets captured
Limitations
None known.Run the example
Clone the repo and run a complete agent end-to-end.Python
Run the Python example
TypeScript
Run the TypeScript example
Next steps
Python SDK Reference
Explore the full Python SDK reference and instrumentation options.
TypeScript SDK Reference
Explore the full TypeScript SDK reference and configuration options.

