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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_instrumentation_openai_agents-0.62.1.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_openai_agents-0.62.1.tar.gz
Algorithm Hash digest
SHA256 ac1d630dfe7ed76f5ad6f756f78ce99532eb8f2ac5c178de63b54dd25b6f57fe
MD5 ba2427c816c4094ab6dc73d9559a480f
BLAKE2b-256 fbeaff9f559bbe4ee2ec4684d35c8738a2c7d537cd78c7e838997da52b102646

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_openai_agents-0.62.1.tar.gz:

Publisher: release.yml on traceloop/openllmetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentelemetry_instrumentation_openai_agents-0.62.1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_openai_agents-0.62.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a5906a6d3ba603bf715902e085bb7a577c053f02be6fcafb1c7739abca11fdc2
MD5 975a69e1af0400ab4e355c696ce9143b
BLAKE2b-256 fc14fc701c81b63584f956cfd38ff0164a88207d22de679922ea0df76c912fdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_openai_agents-0.62.1-py3-none-any.whl:

Publisher: release.yml on traceloop/openllmetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page