Merge pull request #1885 from pipecat-ai/mb/update-langfuse-example

This commit is contained in:
Mark Backman
2025-05-26 10:14:02 -04:00
committed by GitHub
3 changed files with 14 additions and 3 deletions

View File

@@ -38,6 +38,8 @@ OPENAI_API_KEY=your_key_here
pip install -r requirements.txt
```
> Install only the grpc exporter. If you have a conflict, uninstall the http exporter.
### 4. Run the Demo
```bash

View File

@@ -43,6 +43,8 @@ OPENAI_API_KEY=your_key_here
pip install -r requirements.txt
```
> Install only the http exporter. If you have a conflict, uninstall the grpc exporter.
### 4. Run the Demo
```bash

View File

@@ -4,8 +4,15 @@ OPENAI_API_KEY=your_openai_key
# Set to any value to enable tracing
ENABLE_TRACING=true
# OTLP endpoint (change to us.cloud.langfuse.com if you use the US data region)
OTEL_EXPORTER_OTLP_ENDPOINT=http://cloud.langfuse.com/api/public/otel
OTEL_EXPORTER_OTLP_HEADERS=Authorization=Basic%20<base64_encoded_api_keys>
# 🇪🇺 EU data region
OTEL_EXPORTER_OTLP_ENDPOINT="https://cloud.langfuse.com/api/public/otel"
# 🇺🇸 US data region
# OTEL_EXPORTER_OTLP_ENDPOINT="https://us.cloud.langfuse.com/api/public/otel"
# 🏠 Local deployment (>= v3.22.0)
# OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:3000/api/public/otel"
OTEL_EXPORTER_OTLP_HEADERS="Authorization=Basic <base64_encoded_api_keys>"
# Set to any value to enable console output for debugging
# OTEL_CONSOLE_EXPORT=true