CrewAI/OpenLit traces can include prompts, completions, tool inputs, and tool outputs. Review Data Governance before enabling production traffic.
Install
Setup
gen_ai.prompt.{n}.content, gen_ai.completion.{n}.content, gen_ai.usage.*) plus gen_ai.agent.name and gen_ai.operation.name on agent/task spans.
Caveats
- Call
openlit.init()before constructing anyCrew/Agentobjects. - CrewAI’s own anonymized telemetry (sent to CrewAI’s servers) is unrelated and can be left enabled.
Verify
Run oneCrew(...).kickoff() call, then open Raw logs in Agnost. Confirm CrewAI and provider spans are present.
Troubleshooting
- Call
openlit.init()before constructing crews or agents. - Confirm
OTEL_EXPORTER_OTLP_HEADERScontainsX-Agnost-Org-ID=<your-org-id>. - Wrap runs with
using_attributesif you need explicit user/session grouping.
