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.
Metadata
Release files for pytracer-autogen 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytracer_autogen-0.1.0.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytracer_autogen-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / pytracer_autogen-0.1.0.tar.gz
| Download URL | pytracer_autogen-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b0526c9f7c6f4696be011003cf4292f6ef68b7a69fcb202274181543bfe7929
|
|
BLAKE2b-256 checksum How to use checksums |
b8fea0597d29652f16a2d4df24cdafb0835a7229c42f755aa1cec405e80da96e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.4
|
Release files / pytracer_autogen-0.1.0-py3-none-any.whl
| Download URL | pytracer_autogen-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
becc7d7f4be574a8528d8d65eee8b0ff30de38d75884b6107bdb0f9ef85e6092
|
|
BLAKE2b-256 checksum How to use checksums |
f6694c1e3c51f730d8f239b845b5066c1cc620f076f22c81066d8dba694816ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.4
|