Ag2 Telemetry

Add OpenTelemetry traces to an AG2 beta `Agent` via `TelemetryMiddleware` (`autogen.beta.middleware.builtin`). Emits spans for the full turn, each LLM call, each tool execution, and each human-input request, following the OpenTelemetry GenAI semantic conventions. Compatible with any OTLP backend — Jaeger, Grafana Tempo, Datadog, Honeycomb, Langfuse. Use when the user wants production-grade traces, latency analysis, token-usage attribution, or to ship telemetry into an existing observability stack.

ag2ai Updated 252 repo stars

File contents

ag2ai/build-with-ag2 commit e73f45b37d

Frequently asked questions

npx get-skill add ag2ai/ag2-telemetry-2