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

Release files for opentelemetry-instrumentation-openai-agents 0.62.3

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.3
File Size Uploaded
opentelemetry_instrumentation_openai_agents-0.62.3.tar.gz 332.3 kB Details

Built distribution (wheel)

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

Total release size: 353.3 kB

Release files / opentelemetry_instrumentation_openai_agents-0.62.3.tar.gz

Download URL opentelemetry_instrumentation_openai_agents-0.62.3.tar.gz
Size 332.3 kB
Tags Source
SHA-256 checksum
How to use checksums
79764569326f26be9b710e55ad470883715f15c019c303086905770a2aeabfa2
BLAKE2b-256 checksum
How to use checksums
f7d42585002c14fea88a03b843e9558cdc78f8b0576151a38a9f71235d7137ee
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 Aug 10, 2026.

Transparency log

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

Download URL opentelemetry_instrumentation_openai_agents-0.62.3-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc6cf1b23fc0fc138e77068b88115b460f505e2b0175c5bb1e9f1601699c8f91
BLAKE2b-256 checksum
How to use checksums
078b869a73a137aa711156052b953804d667e5efdd220e81e81fd6006a50ddd8
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 Aug 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.62.3 This release

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