Installation
Install the required packages:Setup
1. Configure environment variables
Enable OpenTelemetry instrumentation of the agent and set the OpenTelemetry environment variables to point to the LangSmith OTEL endpoint:2. Enable OpenTelemetry in your application
In your Microsoft Agent Framework application, enable OpenTelemetry tracing using the built-inconfigure_otel_providers function:
Setting
enable_sensitive_data=True allows capturing input and output content in traces. Set to False if you want to exclude sensitive data from traces.