Skip to main content

Overview

This example demonstrates how to use Langfuse via OpenLIT to trace model calls.

Code

Usage

1

Install Dependencies

2

Set Environment Variables

3

Run the Agent

Notes

  • Data Regions: Adjust the OTEL_EXPORTER_OTLP_ENDPOINT for your data region or local deployment as needed:
    • https://us.cloud.langfuse.com/api/public/otel for the US region
    • https://cloud.langfuse.com/api/public/otel for the EU region
    • http://localhost:3000/api/public/otel for local deployment