LoongSuite Microsoft AutoGen Instrumentation
This package instruments Microsoft AutoGen 0.7.x AgentChat flows.
It follows the AutoGen 0.7 native telemetry boundary:
- AutoGen core already emits native GenAI-style spans for
invoke_agent,create_agent, andexecute_tool. - This instrumentation registers a span processor that converts those native
spans to LoongSuite GenAI attributes by setting
gen_ai.span.kind, replacinggen_ai.system=autogenwithgen_ai.provider.name=autogen, and normalizing span kinds. - AgentChat
AssistantAgent.on_messages_streamis wrapped withExtendedTelemetryHandler.invoke_agent()when no native AutoGen agent span is already active. - AgentChat
AssistantAgent._call_llmis wrapped withExtendedTelemetryHandler.llm()so model calls produce LoongSuite LLM spans for any AutoGenChatCompletionClient.
Usage
from opentelemetry.instrumentation.autogen import AutoGenInstrumentor
AutoGenInstrumentor().instrument()
Environment switches:
ARMS_AUTOGEN_INSTRUMENTATION_ENABLED=falsedisables the instrumentation.ARMS_AUTOGEN_AGENT_SPAN_ENABLED=falsedisables the AgentChat agent wrapper.ARMS_AUTOGEN_LLM_SPAN_ENABLED=falsedisables the AgentChat LLM wrapper.ARMS_AUTOGEN_NATIVE_SPAN_PROCESSOR_ENABLED=falsedisables native span normalization.
The package uses opentelemetry-util-genai and respects the shared GenAI
content-capture environment variables.
Metadata
Release files for loongsuite-instrumentation-autogen 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| loongsuite_instrumentation_autogen-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for loongsuite_instrumentation_autogen-0.9.0-py3-none-any.whl |
Release files / loongsuite_instrumentation_autogen-0.9.0-py3-none-any.whl
| Download URL | loongsuite_instrumentation_autogen-0.9.0-py3-none-any.whl |
|---|---|
| Size | 19.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8138ecce6c805a37b906840339e6a61c5ed17105efb62477dcd308df13342360
|
|
BLAKE2b-256 checksum How to use checksums |
19f99ff4a705eee574fee8b466762d7d56286c9f4ff38ee83c74e702c420632b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for loongsuite-instrumentation-autogen 0.9.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.