CrewAI auto-instrumentation is on the roadmap and not yet available.
Check back for updates.
In the meantime, you can trace CrewAI workflows manually using
trace_workflow and trace_function decorators:
from valiqor.trace import trace_workflow, trace_function
from crewai import Agent, Task, Crew
researcher = Agent(
role="Researcher",
goal="Find accurate information",
backstory="Expert researcher"
)
@trace_function("crew-kickoff")
def run_crew(topic):
task = Task(
description=f"Research {topic}",
agent=researcher,
expected_output="A summary"
)
crew = Crew(agents=[researcher], tasks=[task])
return crew.kickoff()
with trace_workflow("crewai-research"):
result = run_crew("AI safety")
print(result)
See the Tracing Guide for more on manual
instrumentation.