opentelemetry-instrumentation-openai-agents-v2
OpenTelemetry OpenAI Agents instrumentation (barebones)
Decision gist · record as of 2026-08-14
Yes, if you are already using OpenTelemetry and need observability into OpenAI Agents v2 applications. The low install friction and permissive license make adoption straightforward. However, the alpha status means the instrumentation is still evolving; verify that it captures the telemetry signals you need and test thoroughly before relying on it in production. No known vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- An OpenTelemetry SDK and exporter must be configured separately to actually emit telemetry data.
- Low install friction with a pure-Python wheel.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in most commercial and open-source projects without significant restrictions.
last release 2025-10-15 (303 days) · last repo commit 2026-08-14 · 1,086 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,890,832 downloads/mo, #2,839 on PyPI
Alternatives
Verify before relying
pip install opentelemetry-instrumentation-openai-agents-v2
from opentelemetry.instrumentation.openai_agents_v2 import OpenAIAgentsInstrumentor
OpenAIAgentsInstrumentor().instrument()- Whether this instrumentation supports all versions of OpenAI Agents v2 or only specific releases.
- What specific telemetry signals (traces, metrics, logs) are captured and their semantic convention status.
- Performance overhead when instrumentation is active in production workloads.
What it is and what it does
This package is an OpenTelemetry instrumentation for OpenAI Agents v2 applications. It automatically intercepts calls to the OpenAI Agents v2 library and emits telemetry data—traces and metrics—without requiring you to modify your application code. The instrumentation integrates with the OpenTelemetry API and semantic conventions, allowing you to export telemetry to any backend that accepts OpenTelemetry data (Jaeger, Datadog, New Relic, etc.).
The package is part of the OpenTelemetry Python contrib repository and is currently in alpha status. It depends on opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, and opentelemetry-util-genai. Installation is straightforward, and the instrumentation is activated by calling the instrument() method. Because it is alpha, the API and captured signals may change; production use should be evaluated carefully.
Use it for
- Enable distributed tracing across OpenAI Agents v2 applications to track request flow and latency.
- Collect metrics on OpenAI Agents v2 API calls for monitoring and alerting in observability platforms.
- Debug OpenAI Agents v2 behavior by examining detailed traces of internal operations and dependencies.
- Correlate OpenAI Agents v2 telemetry with other services in a microservices architecture.
- Audit and log interactions with OpenAI Agents v2 for compliance and troubleshooting.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are already using OpenTelemetry and need observability into OpenAI Agents v2 applications.
The low install friction and permissive license make adoption straightforward. However, the alpha status means the instrumentation is still evolving; verify that it captures the telemetry signals you need and test thoroughly before relying on it in production. No known vulnerabilities.
Install
opentelemetry-instrumentation-openai-agents-v2 on PyPI
Before you install
Low install friction with a pure-Python wheel. The package is actively maintained within the OpenTelemetry Python contrib repository and carries alpha status, meaning it is still evolving; use in production environments should be approached with caution.
Requires Python 3.9 or later. An OpenTelemetry SDK and exporter must be configured separately to actually emit telemetry data.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in most commercial and open-source projects without significant restrictions.
Quickstart
pip install opentelemetry-instrumentation-openai-agents-v2
from opentelemetry.instrumentation.openai_agents_v2 import OpenAIAgentsInstrumentor
OpenAIAgentsInstrumentor().instrument()
Verify before relying
- Whether this instrumentation supports all versions of OpenAI Agents v2 or only specific releases.
- What specific telemetry signals (traces, metrics, logs) are captured and their semantic convention status.
- Performance overhead when instrumentation is active in production workloads.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesopentelemetry-apiopentelemetry-instrumentationopentelemetry-semantic-conventionsopentelemetry-util-genai |
| Maintenance | Actively maintained 303 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,890,832 / month, #2,839 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9 |
Evidence: opentelemetry_instrumentation_openai_agents_v2-0.1.0-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 › “opentelemetry instrumentation openai agents”
- opentelemetry-instrumentation-openai-agents-v2Automatically captures telemetry data from OpenAI Agents v2…
- opentelemetry-instrumentation-openai-agentsAdds distributed tracing to OpenAI Agents workflows, capturing agent…
- 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 opentelemetry-instrumentation-openai-v2 · opentelemetry-instrumentation-openai-agents · opentelemetry-instrumentation-fastapi · opentelemetry-distro · opentelemetry-instrumentation-starlette · opentelemetry-instrumentation-openai · opentelemetry-semantic-conventions-ai · iterative-telemetry