autogen.ConversableAgent, initiate_chat, and
related classes) is now maintained by AG2.
Trace that API with the supported
AG2Instrumentor,
which captures chats, replies, and tool execution as OpenInference AGENT and
TOOL spans in Arize AX. The deprecated
openinference-instrumentation-autogen package is not supported.
This page is for applications using the legacy
autogen API. Install AG2,
which exposes that module, rather than the original AutoGen package. For
Microsoft’s current autogen-agentchat package, use the separate AutoGen
AgentChat tracing guide.Prerequisites
- Python 3.10+
- An Arize AX account (sign up)
Launch Arize AX
- Sign in to your Arize AX account.
- From Space Settings, copy your Space ID and API Key.
Install
Configure credentials
Setup tracing
autogen.
Run legacy AutoGen API
Expected output
Verify in Arize AX
- Open project
autogen-tracing-example. - You should see AGENT spans for the chat and reply, plus a TOOL span named
get_weather.
Check from the skill, CLI, or SDK
Confirm spans are actually reaching your Arize AX project. Use whichever fits your workflow — the skill and CLI work for any framework; the SDK check is shown for each language.- Arize skill (agent)
- AX CLI
- SDK
Install the Arize Skills plugin and let your coding agent check for you:Then prompt your agent:
Use the arize-trace skill to export and analyze recent traces from my project. Confirm spans are arriving, and summarize any errors or latency issues.