skillfed

opentelemetry-instrumentation-crewai

OpenTelemetry crewAI instrumentation

opentelemetry-instrumentation-crewai v0.62.3 6.9M downloads/30d#1,831 on PyPI7,377
Permissive license Apache-2.0 Active released

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-crewai

uv

uv add opentelemetry-instrumentation-crewai

poetry

poetry add opentelemetry-instrumentation-crewai

Installing 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

opentelemetry crewai tracingagentic workflow instrumentationllm agent observabilitycrewai span tracingagent behavior monitoringopentelemetry ai instrumentationcrewai debugging traces
observabilityagent-tracingllm-instrumentation

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-openai-agents

Adds distributed tracing to OpenAI Agents…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-mcp

Adds distributed tracing to MCP (Model Context…

permissive · top 5,000 on PyPI

openinference-instrumentation-crewai

Automatically instruments CrewAI agent…

permissive · top 15,000 on PyPI

raindrop-ai

Instrument LLM applications with event tracking…

permissive · top 15,000 on PyPI

microsoft-agents-a365-observability-core

Provides OpenTelemetry-based telemetry,…

permissive · top 15,000 on PyPI

opentelemetry-instrumentation-openai

Captures traces of OpenAI API calls (prompts,…

permissive · top 5,000 on PyPI

crewai-core

Provides shared utilities, telemetry, and…

unclear · top 5,000 on PyPI

opentelemetry-instrumentation-ollama

Adds distributed tracing to Ollama Python…

permissive · top 5,000 on PyPI

crewai-cli

A command-line tool to scaffold, run, deploy,…

unclear · top 5,000 on PyPI

opentelemetry-instrumentation-vertexai

Automatically captures traces of VertexAI API…

permissive · top 5,000 on PyPI

Further reading