Skip to main content

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

  1. Install Dependencies Ensure you have the necessary package installed:
  2. Create a Langtrace Account
    • Sign up for an account at Langtrace.
    • Obtain your API key from the Langtrace dashboard.
  3. 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.