opentelemetry-instrumentation-openai-agents
OpenTelemetry OpenAI Agents instrumentation
Decision gist · record as of 2026-08-14
Yes, if you run OpenAI Agents in production or development and use OpenTelemetry for observability. The package is actively maintained, has no known vulnerabilities, installs cleanly, and solves a real problem—agent workflows are otherwise a black box. The privacy controls are essential if you handle sensitive user data. Install it if you already have an OpenTelemetry backend; skip it if you have no observability infrastructure.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; requires an OpenTelemetry tracer backend already configured to receive spans.
- Low friction: pure Python wheel with four runtime dependencies on established OpenTelemetry packages.
- Actively maintained with a release 4 days old and no known vulnerabilities.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in most commercial and open-source projects without significant restriction.
last release 2026-08-10 (4 days) · last repo commit 2026-08-10 · 7,377 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,468,996 downloads/mo, #3,051 on PyPI
Alternatives
Verify before relying
pip install opentelemetry-instrumentation-openai-agents
from opentelemetry.instrumentation.openai_agents import OpenAIAgentsInstrumentor
OpenAIAgentsInstrumentor().instrument()- Whether this instrumentation works with all OpenAI Agents framework versions or has specific version constraints.
- Performance overhead of instrumentation on agent execution latency and span volume.
- Whether TRACELOOP_TRACE_CONTENT=false fully redacts sensitive data or only disables logging to span attributes.
What it is and what it does
This package is an OpenTelemetry instrumentation plugin that automatically captures traces from OpenAI Agents workflows. When enabled, it records agent reasoning steps, tool invocations, and decision-making as spans that flow into your observability backend, giving you visibility into how agents behave without modifying your agent code.
It ships with privacy controls: by default it logs prompts, completions, and embeddings to span attributes for debugging, but you can disable this via the TRACELOOP_TRACE_CONTENT environment variable if your data is sensitive. The package depends on the core OpenTelemetry API and instrumentation framework, plus AI-specific semantic conventions, and installs with low friction as a pure Python wheel.
Use it for
- Debug agent behavior by inspecting tool calls, reasoning steps, and LLM interactions in your observability platform.
- Monitor production agent workflows to detect failures, latency spikes, or unexpected tool usage patterns.
- Correlate agent traces with upstream requests and downstream services using OpenTelemetry's distributed tracing.
- Evaluate agent quality by analyzing prompts and completions in traces without modifying agent code.
- Reduce trace data size by disabling content logging in privacy-sensitive environments.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you run OpenAI Agents in production or development and use OpenTelemetry for observability.
The package is actively maintained, has no known vulnerabilities, installs cleanly, and solves a real problem—agent workflows are otherwise a black box. The privacy controls are essential if you handle sensitive user data. Install it if you already have an OpenTelemetry backend; skip it if you have no observability infrastructure.
Install
opentelemetry-instrumentation-openai-agents on PyPI
Before you install
Low friction: pure Python wheel with four runtime dependencies on established OpenTelemetry packages. Actively maintained with a release 4 days old and no known vulnerabilities.
Requires Python 3.10 or later; requires an OpenTelemetry tracer backend already configured to receive spans.
License in practice
Apache-2.0 permissive license allows use in most commercial and open-source projects without significant restriction.
Quickstart
pip install opentelemetry-instrumentation-openai-agents
from opentelemetry.instrumentation.openai_agents import OpenAIAgentsInstrumentor
OpenAIAgentsInstrumentor().instrument()
Verify before relying
- Whether this instrumentation works with all OpenAI Agents framework versions or has specific version constraints.
- Performance overhead of instrumentation on agent execution latency and span volume.
- Whether TRACELOOP_TRACE_CONTENT=false fully redacts sensitive data or only disables logging to span attributes.
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 packagesopentelemetry-apiopentelemetry-instrumentationopentelemetry-semantic-conventions-aiopentelemetry-semantic-conventions |
| Maintenance | Actively maintained 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,468,996 / month, #3,051 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: opentelemetry_instrumentation_openai_agents-0.62.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “distributed tracing for agents”
- opentelemetry-instrumentation-openai-agentsAdds distributed tracing to OpenAI Agents workflows, capturing agent…
- opentelemetry-instrumentation-openai-agents-v2Automatically captures telemetry data from OpenAI Agents v2…
- openinference-instrumentation-openai-agentsAuto-instruments OpenAI Agents SDK to emit OpenTelemetry-compatible…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also microsoft-agents-a365-observability-core · opentelemetry-instrumentation-crewai · opentelemetry-instrumentation-mcp · opentelemetry-instrumentation-openai · opentelemetry-instrumentation-openai-agents-v2 · agentops · mlflow-tracing · raindrop-ai · judgeval · openai-agents