Skip to content

v0.1.8 - CrewAI Integration

Choose a tag to compare

@AdityaSaroj AdityaSaroj released this 06 Feb 07:44
· 76 commits to main since this release

CrewAI instrumentation

  • Implemented monkey‑patching in traccia/integrations/crewai/instrumentation.py for:
    • Crew.kickoff / Crew.kickoff_async → spans named crewai.crew.kickoff.
    • Task.execute_sync / Task.execute_async → spans named crewai.task.{task_name}.
    • Agent.execute_task → spans named crewai.agent.{role}.
    • crewai.llm.LLM.call → spans named crewai.llm.{model}.
  • Spans attach rich attributes (IDs, roles, goals, descriptions, tools, LLM model, async flags, token usage, truncated outputs).
  • Uses tracer.start_as_current_span(name, attributes=…) so spans naturally nest under the current context (e.g. app span → crew → task → agent → LLM → OpenAI).