The CrewAI integration is currently available in the Python SDK only.
Installation
- pip
- uv
Setup
Python
Usage
Python
What gets traced
Multi-agent support
In multi-agent crews, PandaProbe tracks context propagation between agents. Each agent’s output is made available as context for subsequent agents, and this is reflected in the trace hierarchy.Token usage
CrewAI token usage is computed using delta tracking: the adapter snapshots the agent’s cumulative_token_usage before and after each LLM call to determine per-call token counts.
Example with multiple agents
This example sets up a three-agent crew (researcher → analyst → writer). It traces the agents viaCrewAIAdapter and wraps the run in a pandaprobe.session for trace grouping:
Python
AGENT span nested under the root CHAIN, with LLM calls and any tool use recorded beneath the corresponding agent.
