AG2 OpenTelemetry Tracing: Full Observability for Multi-Agent Systems

Multi-agent systems are powerful -- but when something goes wrong, figuring out where and why is painful. Which agent made the bad decision? Was the LLM call slow, or did the tool fail? How many tokens did that group chat actually use?
AG2 now has built-in OpenTelemetry tracing that gives you full visibility into your multi-agent workflows. Every conversation, agent turn, LLM call, tool execution, and speaker selection is captured as a structured span -- connected by a shared trace ID and exportable to any OpenTelemetry-compatible backend.
Key highlights:
- Four simple API functions to instrument agents, LLM calls, group chats, and A2A servers
- Hierarchical traces that mirror how agents process conversations
- Distributed tracing across services using W3C Trace Context propagation
- Works with any backend -- Jaeger, Grafana Tempo, Datadog, Honeycomb, Langfuse, and more
- Follows OpenTelemetry GenAI Semantic Conventions for standard interoperability

