langwatch.setup()
—no manual exporter or environment variable configuration is required.
Prerequisites
- Install the required packages:
- Get your LangWatch API key from your project settings and set it as an environment variable:
Instrumenting Agno with LangWatch
You can use the OpenInference Agno instrumentor to automatically capture traces from your Agno agents. Just pass the instrumentor tolangwatch.setup()
.
Notes
- You do not need to set any OpenTelemetry environment variables or configure exporters manually—
langwatch.setup()
handles everything. - You can combine Agno instrumentation with other instrumentors (e.g., OpenAI, LangChain) by adding them to the
instrumentors
list. - For advanced configuration (custom attributes, endpoint, etc.), see the Python integration guide.
Troubleshooting
- Make sure your
LANGWATCH_API_KEY
is set in the environment. - If you see no traces in LangWatch, check that the instrumentor is included in
langwatch.setup()
and that your agent code is being executed.