LoongSuite Microsoft AutoGen instrumentation
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file loongsuite_instrumentation_autogen-0.7.0-py3-none-any.whl.
File metadata
- Download URL: loongsuite_instrumentation_autogen-0.7.0-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7325e12583552c3900fc46985ab7ba6cdb43abc80959bae956c41e258ae1b34e
|
|
| MD5 |
de3379d093d5a3f778ecd05c0698775a
|
|
| BLAKE2b-256 |
0187b0793761fd4da81aa722b4d38a9ac64dccf231bd3c2b037e372f7c2597d4
|