Skip to main content

pytracer-openai-agents

pyTracer adapter for the OpenAI Agents SDK. It auto-instruments an agent through the SDK's built-in tracing, so you do not add @op by hand: agent runs, model generations, tool (function) calls, and handoffs are captured as pyTracer spans.

import pytracer_sdk as pytracer
from pytracer_openai_agents import install

pytracer.configure(
    pytracer.HTTPTransport("https://gateway.internal", api_key="YOUR_KEY"),
    service_name="my-agent", branch="main", commit="abc123",
)

install()   # now every agent run is captured, and only pyTracer receives traces

install() uses the SDK's set_trace_processors to make pyTracer the only trace processor. Do not use add_trace_processor: it appends, leaving the SDK's default processor in place, which uploads every trace to OpenAI when OPENAI_API_KEY is set. If you deliberately want both destinations, add the processor yourself with add_trace_processor(PyTracerTracingProcessor()).

Agent spans map to agent spans, generations and responses to LLM spans, function calls to tool spans, and handoffs to handoff spans, all linked into one trace by the SDK's own span tree.

Replay

This adapter captures runs. Replaying a captured run currently requires @op instrumentation, because the replay engine intercepts @op calls; replay through the adapter itself is on the roadmap. Attempting to replay an adapter-only trace is flagged (the run has recordings but hits no @op seam) rather than silently running live. See the main README for the replay workflow.

Metadata

Release files for pytracer-openai-agents 0.1.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 pytracer-openai-agents 0.1.3
File Size Uploaded Provenance
pytracer_openai_agents-0.1.3.tar.gz 6.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pytracer-openai-agents 0.1.3
File Interpreter ABI Platform
pytracer_openai_agents-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / pytracer_openai_agents-0.1.3.tar.gz

Download URL pytracer_openai_agents-0.1.3.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f59ef0daf6bc139d828f43e7493043089866a626854bb47bf40bd5ad6352fdb3
BLAKE2b-256 checksum
How to use checksums
120cb9e8036dc769f2e013f13aed8f00241eb165606b6503f78dac66bbc34404
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 Oct 24, 2026.

Transparency log

Release files / pytracer_openai_agents-0.1.3-py3-none-any.whl

Download URL pytracer_openai_agents-0.1.3-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
370669654373f091232d0114563978f6ddc69f563f6c0361448d34681d6bb7c3
BLAKE2b-256 checksum
How to use checksums
67ebafaa0c4a06e12817b2b40bf7c96dc15b1d7a1ca8239a564583c737ac3acc
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 Oct 24, 2026.

Transparency log

Security for pytracer-openai-agents 0.1.3

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pytracer_openai_agents-0.1.3.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 Oct 24, 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