Skip to main content
Send Agno agent traces to LangSmith through its OpenTelemetry endpoint.

Prerequisites

  1. Create a LangSmith Account
    • Sign up for an account at LangSmith.
    • Obtain your API key from the LangSmith dashboard.
  2. Set Environment Variables
  3. Install Dependencies

Sending Traces to LangSmith

langsmith_tracing.py

Run the Example

Save the code as langsmith_tracing.py, then run:

Data Region

Set LANGSMITH_ENDPOINT to the endpoint for your LangSmith data region. The code appends /otel/v1/traces to that value.