Skip to main content

pytracer-autogen

pyTracer adapter for AutoGen (0.4+). AutoGen instruments agents, tool calls, and model calls with OpenTelemetry using the GenAI semantic conventions. This adapter plugs a pyTracer exporter into an OpenTelemetry tracer provider, so those spans are captured as pyTracer spans with no @op in the agent code.

import pytracer_sdk as pytracer
from pytracer_autogen import pytracer_tracer_provider
from autogen_core import SingleThreadedAgentRuntime

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

runtime = SingleThreadedAgentRuntime(tracer_provider=pytracer_tracer_provider())

Because it keys off standard GenAI attributes (gen_ai.operation.name, gen_ai.tool.name, gen_ai.agent.name, gen_ai.usage.*), the same exporter captures spans from any GenAI-instrumented library, not only AutoGen.

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-autogen 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-autogen 0.1.2
File Size Uploaded Provenance
pytracer_autogen-0.1.2.tar.gz 5.7 kB With provenance Details

Built distribution (wheel)

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

Total release size: 10.6 kB

Release files / pytracer_autogen-0.1.2.tar.gz

Download URL pytracer_autogen-0.1.2.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b90213d564435944bbc13428b43d20b2aa943ccd56fce48bb400dc76987bca9e
BLAKE2b-256 checksum
How to use checksums
70952a71f0459a72210e7f06e0b16d881aebd8bf5d5bee24654a9e5d4aef2e21
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_autogen-0.1.2-py3-none-any.whl

Download URL pytracer_autogen-0.1.2-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46ebeb1aa3165f82ec920c5bf548dd6bb285401508e1d014f931599e04661441
BLAKE2b-256 checksum
How to use checksums
d94f9ef471534723f04ddee4f42ec5a4f00ed93061ae9d89b9e54cd4399147a2
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-autogen 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_autogen-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