openinference-instrumentation-openai-agents
OpenInference OpenAI Agents Instrumentation
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, and low install friction. Install it if you use OpenAI Agents and need observability into agent execution, tool calls, or realtime audio sessions. The instrumentation is automatic and non-invasive, and integrates cleanly with standard OpenTelemetry collectors.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires openai-agents>=0.11.0 and Python >=3.10, <3.15.
- OPENAI_API_KEY environment variable must be set.
- Low friction install with active maintenance—released 7 days ago with no known vulnerabilities.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in commercial and private projects with minimal restrictions.
last release 2026-08-07 (7 days) · last repo commit 2026-08-14 · 1,147 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,024,178 downloads/mo, #4,487 on PyPI
Alternatives
Verify before relying
pip install openinference-instrumentation-openai-agents
from openinference.instrumentation.openai_agents import OpenAIAgentsInstrumentor
from opentelemetry.sdk import trace as trace_sdk
tracer_provider = trace_sdk.TracerProvider()
OpenAIAgentsInstrumentor().instrument(tracer_provider=tracer_provider)- Whether realtime audio tracing works without additional Phoenix or AX setup beyond the tracer provider
- Performance overhead of instrumentation on agent execution latency
- Compatibility with custom agent implementations or non-standard OpenAI Agents patterns
What it is and what it does
This package automatically instruments the OpenAI Agents SDK to capture execution traces compatible with OpenTelemetry. When you run an agent, it records spans for each agent invocation, tool call, and (if using realtime audio) conversation turn with transcripts and audio URIs. The traces can be exported to observability platforms like Arize Phoenix or Arize AX for visualization and analysis.
The instrumentation wraps agent internals to intercept function calls without requiring code changes to your agent logic. It supports tool namespaces, captures LLM model names and invocation parameters, and includes optional audio redaction via environment variables for privacy-sensitive deployments. Requires Python 3.10–3.14 and openai-agents 0.11.0 or later.
Use it for
- Debug agent behavior by viewing the full span tree of tool calls, LLM invocations, and intermediate outputs in Phoenix.
- Monitor production agent runs in real-time to detect failures, latency spikes, or unexpected tool execution patterns.
- Trace realtime audio conversations to correlate user input transcripts, LLM responses, and tool invocations in a single view.
- Redact sensitive audio or input data in traces using environment variables while preserving structural observability.
- Export agent telemetry to Arize AX for model performance analysis and drift detection across agent deployments.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, and low install friction. Install it if you use OpenAI Agents and need observability into agent execution, tool calls, or realtime audio sessions. The instrumentation is automatic and non-invasive, and integrates cleanly with standard OpenTelemetry collectors.
Install
openinference-instrumentation-openai-agents on PyPI
Before you install
Low friction install with active maintenance—released 7 days ago with no known vulnerabilities. Depends on standard OpenTelemetry and OpenInference libraries, all widely used.
Requires openai-agents>=0.11.0 and Python >=3.10, <3.15. OPENAI_API_KEY environment variable must be set.
License in practice
Apache-2.0 permissive license allows use in commercial and private projects with minimal restrictions.
Quickstart
pip install openinference-instrumentation-openai-agents
from openinference.instrumentation.openai_agents import OpenAIAgentsInstrumentor
from opentelemetry.sdk import trace as trace_sdk
tracer_provider = trace_sdk.TracerProvider()
OpenAIAgentsInstrumentor().instrument(tracer_provider=tracer_provider)
Verify before relying
- Whether realtime audio tracing works without additional Phoenix or AX setup beyond the tracer provider
- Performance overhead of instrumentation on agent execution latency
- Compatibility with custom agent implementations or non-standard OpenAI Agents patterns
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <3.15,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 7 packagesopeninference-instrumentationopeninference-semantic-conventionsopentelemetry-apiopentelemetry-instrumentationopentelemetry-semantic-conventionstyping-extensionswrapt |
| Maintenance | Actively maintained 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,024,178 / month, #4,487 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended 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.14 |
Evidence: openinference_instrumentation_openai_agents-2.0.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 › “realtime audio tracing”
- openinference-instrumentation-openai-agentsAuto-instruments OpenAI Agents SDK to emit OpenTelemetry-compatible…
- livekit-agentsA framework for building realtime multimodal and voice AI agents that…
- sonioxPython SDK for the Soniox speech-to-text and text-to-speech API,…
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 openinference-instrumentation-openai · paid-python · openinference-instrumentation-crewai · openinference-instrumentation-agno · openinference-semantic-conventions · openinference-instrumentation-claude-agent-sdk · openai-agents · openinference-instrumentation-google-genai · openinference-instrumentation-google-adk · openinference-instrumentation-pydantic-ai