opentelemetry-instrumentation-crewai
OpenTelemetry crewAI instrumentation
What it is and what it does
This package integrates OpenTelemetry tracing into crewAI agent workflows, automatically capturing LLM calls, agent decisions, and task execution as distributed traces. It wraps crewAI components to emit span events that record prompts, completions, and embeddings by default, giving visibility into how agents behave and make decisions.
The instrumentation is enabled with a single call to CrewAIInstrumentor().instrument() and respects the TRACELOOP_TRACE_CONTENT environment variable to disable sensitive content logging for privacy. It depends on the OpenTelemetry API, instrumentation framework, and AI-specific semantic conventions to standardize how agent behavior is represented in traces.
Use it for:
- Debug crewAI agent behavior by examining LLM prompts and responses in distributed traces.
- Monitor production agent workflows to detect performance bottlenecks or unexpected LLM outputs.
- Audit agent decisions and data flow for compliance by logging prompts and completions to traces.
- Correlate agent activity with other system components using OpenTelemetry's trace context propagation.
- Evaluate agent output quality by analyzing completions and embeddings captured in spans.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds OpenTelemetry tracing to crewAI agentic workflows, capturing LLM interactions and agent behavior as spans with optional content logging.
Yes, if you are running crewAI agents in production or development and need observability. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a safe choice. Install only if you have an OpenTelemetry collector or exporter configured to receive traces; otherwise traces will be generated but discarded.
Install
opentelemetry-instrumentation-crewai on PyPI
pip
pip install opentelemetry-instrumentation-crewaiuv
uv add opentelemetry-instrumentation-crewaipoetry
poetry add opentelemetry-instrumentation-crewaiInstalling opentelemetry-instrumentation-crewai
Before you install
Low friction install with four stable OpenTelemetry dependencies. Package is actively maintained with recent releases and no known vulnerabilities.
License in practice
Apache-2.0 permissive license allows use in commercial and proprietary projects with minimal restrictions.
Quickstart
pip install opentelemetry-instrumentation-crewai
from opentelemetry.instrumentation.crewai import CrewAIInstrumentor
CrewAIInstrumentor().instrument()
Requires Python 3.10 or later. Requires a running OpenTelemetry collector or exporter to receive traces.
Verify before relying
- Whether the package works with all crewAI versions or has specific compatibility constraints.
- Performance overhead of instrumentation on large-scale agent deployments.
- Whether custom span processors or exporters are easily configurable beyond environment variables.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions-ai, opentelemetry-semantic-conventions |
| Maintenance | actively maintained — 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,857,958/month — #1,831 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opentelemetry_instrumentation_crewai-0.62.3-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-openai-agentsAdds distributed tracing to OpenAI Agents…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-mcpAdds distributed tracing to MCP (Model Context…
permissive · top 5,000 on PyPI
openinference-instrumentation-crewaiAutomatically instruments CrewAI agent…
permissive · top 15,000 on PyPI
raindrop-aiInstrument LLM applications with event tracking…
permissive · top 15,000 on PyPI
microsoft-agents-a365-observability-coreProvides OpenTelemetry-based telemetry,…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-openaiCaptures traces of OpenAI API calls (prompts,…
permissive · top 5,000 on PyPI
crewai-coreProvides shared utilities, telemetry, and…
unclear · top 5,000 on PyPI
opentelemetry-instrumentation-ollamaAdds distributed tracing to Ollama Python…
permissive · top 5,000 on PyPI
crewai-cliA command-line tool to scaffold, run, deploy,…
unclear · top 5,000 on PyPI
opentelemetry-instrumentation-vertexaiAutomatically captures traces of VertexAI API…
permissive · top 5,000 on PyPI