Skip to main content

OpenAI Agents OpenTelemetry Integration

Overview

This integration provides support for using OpenTelemetry with the OpenAI Agents framework. It enables tracing and monitoring of applications built with OpenAI Agents.

Installation

  1. Install traceAI OpenAI Agents
pip install traceAI-openai-agents

Set Environment Variables

Set up your environment variables to authenticate with FutureAGI

import os

os.environ["FI_API_KEY"] = FI_API_KEY
os.environ["FI_SECRET_KEY"] = FI_SECRET_KEY

Quickstart

Register Tracer Provider

Set up the trace provider to establish the observability pipeline. The trace provider:

from fi_instrumentation import register
from fi_instrumentation.fi_types import ProjectType

trace_provider = register(
    project_type=ProjectType.OBSERVE,
    project_name="openai_agents_app"
)

Configure OpenAI Agents Instrumentation

Instrument the OpenAI Agents client to enable telemetry collection. This step ensures that all interactions with the OpenAI Agents SDK are tracked and monitored.

from traceai_openai_agents import OpenAIAgentsInstrumentor

OpenAIAgentsInstrumentor().instrument(tracer_provider=trace_provider)

Create OpenAI Agents Components

Set up your OpenAI Agents client with built-in observability.

from agents import Agent, Runner

agent = Agent(name="Assistant", instructions="You are a helpful assistant")
result = Runner.run_sync(agent, "Write a haiku about recursion in programming.")

print(result.final_output)

Metadata

Release files for traceAI-openai-agents 0.1.8

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

Source distribution (sdist)

Source distribution for traceAI-openai-agents 0.1.8
File Size Uploaded Provenance Actions
traceai_openai_agents-0.1.8.tar.gz 9.5 kB With provenance Details for traceai_openai_agents-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for traceAI-openai-agents 0.1.8
File Interpreter ABI Platform Actions
traceai_openai_agents-0.1.8-py3-none-any.whl Python 3 none any Details for traceai_openai_agents-0.1.8-py3-none-any.whl

Total release size: 19.5 kB

Release files / traceai_openai_agents-0.1.8.tar.gz

Download URL traceai_openai_agents-0.1.8.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
acbe2f87035e26d4d90a5f17984b4493b1cd06cc3f0c0984ef3d0410e0ef49a8
BLAKE2b-256 checksum
How to use checksums
56b3f6ab20e766e48356059d0d4b4907354b74b2f19f80a4fb7372496738a53d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Release files / traceai_openai_agents-0.1.8-py3-none-any.whl

Download URL traceai_openai_agents-0.1.8-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
358b2543ba952d5fd4012199f59a46f3ad5866ab5345382c06879b34ba0f482e
BLAKE2b-256 checksum
How to use checksums
f20eb19ba69ce3f21cc517ffc85add6b7c64dcecc5665e235583b1826b82d6ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Security for traceAI-openai-agents 0.1.8

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for traceai_openai_agents-0.1.8.tar.gz

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 Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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