Prerequisites
-
Install Dependencies
-
Create a Langwatch Account
- Sign up or log in to your LangWatch dashboard.
- Obtain your API key from your project settings.
-
Set Environment Variables
Sending Traces to LangWatch
This example demonstrates how to instrument your Agno agent and send traces to LangWatchNotes
- No OpenTelemetry Setup Needed: You do not need to set any OpenTelemetry environment variables or configure exporters manually—
langwatch.setup()
handles everything. - Troubleshooting: If you see no traces in LangWatch, ensure your
LANGWATCH_API_KEY
is set and that the instrumentor is included inlangwatch.setup()
. - For advanced configuration (custom attributes, endpoint, etc.), see the LangWatch Python integration guide.