Installation
Install the required packages using your preferred package manager:Setup
1. Configure environment variables
Set your API keys and project name:2. Configure OpenTelemetry integration
In your AutoGen application, configure the LangSmith OpenTelemetry integration along with the OpenAI instrumentor:3. Create and run your AutoGen application
Once configured, your AutoGen application will automatically send traces to LangSmith. Pass the tracer provider to the runtime for full tracing coverage:Advanced usage
Custom metadata and tags
You can add custom metadata to your traces by setting span attributes:Combining with other instrumentors
You can combine AutoGen tracing with other OpenTelemetry instrumentors:Resources
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.