use http exporter

This commit is contained in:
Marc Klingen
2025-05-18 19:11:06 +02:00
parent 7a8ab9a900
commit 69ae83516e
2 changed files with 5 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ import os
from dotenv import load_dotenv from dotenv import load_dotenv
from loguru import logger from loguru import logger
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from pipecat.adapters.schemas.function_schema import FunctionSchema from pipecat.adapters.schemas.function_schema import FunctionSchema
from pipecat.adapters.schemas.tools_schema import ToolsSchema from pipecat.adapters.schemas.tools_schema import ToolsSchema
@@ -35,10 +35,7 @@ IS_TRACING_ENABLED = bool(os.getenv("ENABLE_TRACING"))
# Initialize tracing if enabled # Initialize tracing if enabled
if IS_TRACING_ENABLED: if IS_TRACING_ENABLED:
# Create the exporter # Create the exporter
otlp_exporter = OTLPSpanExporter( otlp_exporter = OTLPSpanExporter()
endpoint=os.getenv("OTEL_EXPORTER_OTLP_ENDPOINT", "http://localhost:4317"),
insecure=True,
)
# Set up tracing with the exporter # Set up tracing with the exporter
setup_tracing( setup_tracing(

View File

@@ -1,6 +1,6 @@
fastapi fastapi
uvicorn uvicorn
python-dotenv python-dotenv
pipecat-ai[webrtc,silero,cartesia,deepgram,openai,tracing] git+https://github.com/pipecat-ai/pipecat.git@main#egg=pipecat-ai[webrtc,silero,cartesia,deepgram,openai,tracing]
pipecat-ai-small-webrtc-prebuilt git+https://github.com/pipecat-ai/small-webrtc-prebuilt.git@main#egg=pipecat-ai-small-webrtc-prebuilt
opentelemetry-exporter-otlp-proto-grpc opentelemetry-exporter-otlp-proto-http