AutoGen (tracing)
AutoGen (tracing)
AutoGen AgentChat is Microsoft’s framework for building event-driven single-agent and multi-agent applications. Respan gives you full observability over agent runs, team conversations, tool calls, and LLM generations.
Set up Respan
Create an account at platform.respan.ai and grab an API key.
Run npx @respan/cli setup to set up with your coding agent.
Use Respan Gateway
See AutoGen gateway setup to route this integration through the Respan gateway.
Example projects
Setup
Set environment variables
OPENAI_API_KEY is used for AutoGen model calls. RESPAN_API_KEY is used to export traces to Respan. Set OPENAI_MODEL to override the default gpt-4o-mini model.
View your trace
Open the Traces page to see your AutoGen workflow with agent spans, team spans, tool spans, and LLM generations.
Configuration
Attributes
In Respan()
Set defaults at initialization — these apply to all spans.
With propagate_attributes
Override per-request using a context scope.
Examples
Tool calls
Tool calls are captured as spans with inputs, outputs, and timing.
Teams
Team conversations are traced with workflow, agent, and LLM spans.