Install
- Python
Set up
- Python
Usage
Once initialized, crew and agent executions are captured automatically: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 with root span
Crew_<id>.kickoff; naming the crew withCrew(name=...)uses that name instead. - Via the CLI: Run
traceroot traces listto inspect your recent traces from the terminal.
What gets captured
Limitations
- CrewAI delegates LLM generation to underlying providers (e.g., OpenAI, Anthropic). Initializing your provider integration (such as
Integration.OPENAI) alongside CrewAI is recommended for accurate token usage and cost calculation.
Run the example
Clone the repo and run a complete agent end-to-end.Python
Run the Python example
Next steps
Python SDK Reference
Explore the full Python SDK reference and instrumentation options.
Cost Tracking
Learn how TraceRoot calculates token costs and tracks model spend.

