Skip to main content

Integrating Agno with Langtrace

Langtrace traces and monitors the model calls made by an Agno agent.

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 and OpenAI API keys:

Sending Traces to Langtrace

Instrument your Agno agent with Langtrace.
Initialize Langtrace before importing Agno or OpenAI modules. This lets Langtrace instrument the model client when it loads.