Installation
Quick setup
Add two lines to yourmain.py - import and init at the top:
crewai run - traces flow to Arzule automatically.
What gets captured
The CrewAI integration automatically captures:Crew lifecycle
crew.kickoff.start- When the crew begins executioncrew.kickoff.complete- Successful completion with resultscrew.kickoff.failed- Failures with error details
Agent execution
agent.execution.start- Each agent begins workingagent.execution.complete- Agent finishes its assignment- Agent role, goal, and backstory metadata
Task progress
task.start- Task execution beginstask.complete- Task finishes with outputtask.failed- Task failures with error context- Task descriptions and expected outputs
Tool usage
tool.call.start- Tool invocation with inputstool.call.end- Tool results or errors- Tool names and execution timing
LLM interactions
llm.call.start- Prompts sent to the modelllm.call.end- Responses received- Token counts and latency metrics
Agent handoffs
handoff.proposed- One agent suggests handing to anotherhandoff.ack- Receiving agent acceptshandoff.complete- Handoff finishes
Example trace
A typical CrewAI execution generates a trace like:Advanced configuration
Manual instrumentation
For more control, use the explicit instrumentation API:Local development
Write traces to a local file during development:Supported CrewAI versions
| CrewAI Version | Support |
|---|---|
| 0.80.0+ | Full support |
| < 0.80.0 | Not supported |
The SDK requires CrewAI 0.80.0 or higher. Earlier versions use a different internal architecture that we cannot instrument.
Troubleshooting
Traces not appearing
- Verify
arzule_ingest.init()is called beforecrew.kickoff() - Check your environment variables are set correctly
- Ensure network access to
ingest.arzule.com
Missing tool calls
Some custom tools may not be automatically instrumented. Wrap them with the@arzule_ingest.trace decorator for explicit tracking.
High latency
The SDK batches events and sends them asynchronously. If you’re seeing latency:- Check your
ARZULE_BATCH_SIZEsetting - Verify network connectivity
- Consider using a local file sink for development
