Skip to main content

OpenTelemetry OpenAI Agents Instrumentation

This library enables tracing of agentic workflows implemented using the OpenAI Agents framework, allowing visibility into agent reasoning, tool usage, and decision-making steps.

Installation

pip install opentelemetry-instrumentation-openai-agents

Example usage

from opentelemetry.instrumentation.openai_agents import OpenAIAgentsInstrumentor

OpenAIAgentsInstrumentor().instrument()

Privacy

By default, this instrumentation logs prompts, completions, and embeddings to span attributes. This gives you a clear visibility into how your LLM application is working, and can make it easy to debug and evaluate the quality of the outputs.

However, you may want to disable this logging for privacy reasons, as they may contain highly sensitive data from your users. You may also simply want to reduce the size of your traces.

To disable logging, set the TRACELOOP_TRACE_CONTENT environment variable to false.

TRACELOOP_TRACE_CONTENT=false

Metadata

Release files for opentelemetry-instrumentation-openai-agents 0.62.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opentelemetry-instrumentation-openai-agents 0.62.4
File Size Uploaded
opentelemetry_instrumentation_openai_agents-0.62.4.tar.gz 332.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opentelemetry-instrumentation-openai-agents 0.62.4
File Interpreter ABI Platform
opentelemetry_instrumentation_openai_agents-0.62.4-py3-none-any.whl Python 3 none any Details

Total release size: 353.3 kB

Release files / opentelemetry_instrumentation_openai_agents-0.62.4.tar.gz

Download URL opentelemetry_instrumentation_openai_agents-0.62.4.tar.gz
Size 332.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4217916a05af6d75fda7f45efe9c24f5deb679e0441f9932aea091c752619e65
BLAKE2b-256 checksum
How to use checksums
06c0d1fa2923cd08ee279232d5f8a49b01e79b20df306df0dfc18bb37e8978c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release files / opentelemetry_instrumentation_openai_agents-0.62.4-py3-none-any.whl

Download URL opentelemetry_instrumentation_openai_agents-0.62.4-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c6f7433d24eb4ce14c13b94dbd55c8606ca5298bcc3b71c203451bb009ac246
BLAKE2b-256 checksum
How to use checksums
77dc0215ce2051b379e8dd6dcb22891533765aba6eca109478bd8b26779209ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.62.4 This release

2 release files

0.62.3

2 release files

0.62.1

2 release files

0.61.0

2 release files

0.60.0

2 release files

0.59.2

2 release files

0.59.1

2 release files

0.59.0

2 release files

0.58.1

2 release files

0.57.0

2 release files

0.56.1

2 release files

0.56.0

2 release files

0.55.0

2 release files

0.54.0

2 release files

0.53.4

2 release files

0.53.3

2 release files

0.53.2

2 release files

0.52.6

2 release files

0.52.5

2 release files

0.52.4

2 release files

0.52.3

2 release files

0.51.1

2 release files

0.51.0

2 release files

0.50.1

2 release files

0.49.8

2 release files

0.49.5

2 release files

0.49.4

2 release files

0.49.3

2 release files

0.49.2

2 release files

0.49.1

2 release files

0.49.0

2 release files

0.48.2

2 release files

0.48.1

2 release files

0.48.0

2 release files

0.47.5

2 release files

0.47.4

2 release files

0.47.3

2 release files

0.47.2

2 release files

0.47.1

2 release files

0.47.0

2 release files

0.46.2

2 release files

0.46.1

2 release files

0.46.0

2 release files

0.45.6

2 release files

0.45.5

2 release files

0.45.4

2 release files

0.45.3

2 release files

0.45.2

2 release files

0.45.1

2 release files

0.45.0

2 release files

0.44.3

2 release files

0.44.2

2 release files

0.43.1

2 release files

0.43.0

2 release files

0.42.0

2 release files

0.41.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page