Observability
Langtrace
Integrate Agno with Langtrace to send traces and gain insights into your agent’s performance.
Integrating Agno with Langtrace
Langtrace provides a powerful platform for tracing and monitoring AI model calls. By integrating Agno with Langtrace, you can gain insights into your agent’s performance and behavior.
Prerequisites
-
Install Dependencies
Ensure you have the necessary package installed:
-
Create a Langtrace Account
- Sign up for an account at Langtrace.
- Obtain your API key from the Langtrace dashboard.
-
Set Environment Variables
Configure your environment with the Langtrace API key:
Sending Traces to Langtrace
This example demonstrates how to instrument your Agno agent with Langtrace.
Notes
- Environment Variables: Ensure your environment variable is correctly set for the API key.
- Initialization: Call
langtrace.init()
to initialize Langtrace before using the agent.
By following these steps, you can effectively integrate Agno with Langtrace, enabling comprehensive observability and monitoring of your AI agents.