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.2

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.2
File Size Uploaded Provenance
pytracer_openai_agents-0.1.2.tar.gz 5.8 kB With provenance Details

Built distribution (wheel)

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

Total release size: 10.4 kB

Release files / pytracer_openai_agents-0.1.2.tar.gz

Download URL pytracer_openai_agents-0.1.2.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c2bea16caa666c7a4036629081c201e092d1572446740c9599ca5524e2ae7b3a
BLAKE2b-256 checksum
How to use checksums
e066b82dfc74841d16d9780bb40ee801f4978e1cd27f32661b8f15d7db1c4fd9
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 21, 2026.

Transparency log

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

Download URL pytracer_openai_agents-0.1.2-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
296226c7e082c4d9c76f8b606409d9f88e1b3fb94bbc5ceefc60a488076c0e86
BLAKE2b-256 checksum
How to use checksums
25563f80f15fe5085afeb10254d118b47cd49757e4f51ee58718a4c0787c612a
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 21, 2026.

Transparency log

Security for pytracer-openai-agents 0.1.2

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.2.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 21, 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