Skip to main content

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, and execute_tool.
  • This instrumentation registers a span processor that converts those native spans to LoongSuite GenAI attributes by setting gen_ai.span.kind, replacing gen_ai.system=autogen with gen_ai.provider.name=autogen, and normalizing span kinds.
  • AgentChat AssistantAgent.on_messages_stream is wrapped with ExtendedTelemetryHandler.invoke_agent() when no native AutoGen agent span is already active.
  • AgentChat AssistantAgent._call_llm is wrapped with ExtendedTelemetryHandler.llm() so model calls produce LoongSuite LLM spans for any AutoGen ChatCompletionClient.

Usage

from opentelemetry.instrumentation.autogen import AutoGenInstrumentor

AutoGenInstrumentor().instrument()

Environment switches:

  • ARMS_AUTOGEN_INSTRUMENTATION_ENABLED=false disables the instrumentation.
  • ARMS_AUTOGEN_AGENT_SPAN_ENABLED=false disables the AgentChat agent wrapper.
  • ARMS_AUTOGEN_LLM_SPAN_ENABLED=false disables the AgentChat LLM wrapper.
  • ARMS_AUTOGEN_NATIVE_SPAN_PROCESSOR_ENABLED=false disables 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)

Table of built distributions (wheels) for loongsuite-instrumentation-autogen 0.9.0
File Interpreter ABI Platform Actions
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.

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