Skip to main content
Prefer zero setup? Use plog run or import provenlog.auto instead. See Auto-Instrumentation.

Setup

from provenlog.integrations.crewai import Trail

trail = Trail(agent_id="my-crew")
# Run your crew as normal — events are captured automatically
crew.kickoff()

What gets captured

EventAction TypeDetails
Tool usageTOOL_CALL / TOOL_RESULTTool name, inputs, outputs
LLM callsLLM_CALL / LLM_RESPONSEModel, prompt, token counts
Task lifecycleCUSTOMTask start, completion, delegation
Crew executionCUSTOMCrew start, finish, agent roles
Cache hitsCUSTOMCached tool results

How it works

The CrewAI Trail auto-registers on CrewAI’s global event bus. Once instantiated, it passively observes all crew activity without any additional wiring.

Configuration

# Simple — uses default embedded mode
trail = Trail(agent_id="my-crew")

# With explicit client for custom configuration
from provenlog import ProvenLogClient

client = ProvenLogClient("http://localhost:7600", agent_id="my-agent")
trail = Trail(client=client, agent_id="my-crew")