Skip to content
masterclass Buddy

AI Agents · Concept

AutoGen

Trace AutoGen multi-agent conversations in LangSmith by using OpenTelemetry with AutoGen and OpenAI instrumentation. Add LangSmith's span processor, configure environment variables, and pass the provider to the runtime for fuller coverage.

Last updated

Syntax

provider = TracerProvider()
provider.add_span_processor(OtelSpanProcessor())
trace.set_tracer_provider(provider)
OpenAIInstrumentor().instrument()

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • OpenTelemetry
  • OtelSpanProcessor
  • OpenAIInstrumentor
  • SingleThreadedAgentRuntime
  • SelectorGroupChat
  • Agent addressing
  • tracer_session_name

Source: Trace AutoGen agents. Checked 2026-11-03.