Setup
Installation
- Install Langtrace’s SDK and initialize the SDK in your code.
- Install CrewAI’s SDK and initialize the SDK in your code.
Import and initialize Langtrace at the beginning of your script, before any
CrewAI imports:
Additional Setup for CrewAI CLI Projects
When using CrewAI’s CLI (e.g., when you create a project usingcrewai create crew <crewname>
), you need to add Langtrace as a dependency in your project’s pyproject.toml
file:
Usage
Use thelangtrace
SDK to capture traces from your CrewAI agents.
