From edab956d0b35a801e0dfe8131678f7a30e10c95a Mon Sep 17 00:00:00 2001 From: cthomas Date: Sun, 16 Mar 2025 14:36:32 -0700 Subject: [PATCH] fix: remove old otel config files (#1310) --- Dockerfile | 2 +- letta/server/rest_api/app.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0e99ff19..e5cae465 100644 --- a/Dockerfile +++ b/Dockerfile @@ -65,7 +65,7 @@ ENV LETTA_ENVIRONMENT=${LETTA_ENVIRONMENT} \ POSTGRES_PASSWORD=letta \ POSTGRES_DB=letta \ COMPOSIO_DISABLE_VERSION_CHECK=true \ - OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 + LETTA_OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 WORKDIR /app diff --git a/letta/server/rest_api/app.py b/letta/server/rest_api/app.py index d6aa2ef8..4acfb591 100644 --- a/letta/server/rest_api/app.py +++ b/letta/server/rest_api/app.py @@ -256,15 +256,15 @@ def create_application() -> "FastAPI": ) # Set up OpenTelemetry tracing - endpoint = os.getenv("OTEL_EXPORTER_OTLP_ENDPOINT") - if endpoint: - print(f"▶ Using OTLP tracing with endpoint: {endpoint}") + otlp_endpoint = os.getenv("LETTA_OTEL_EXPORTER_OTLP_ENDPOINT") + if otlp_endpoint: + print(f"▶ Using OTLP tracing with endpoint: {otlp_endpoint}") env_name_suffix = os.getenv("ENV_NAME") service_name = f"letta-server-{env_name_suffix.lower()}" if env_name_suffix else "letta-server" from letta.tracing import setup_tracing setup_tracing( - endpoint=endpoint, + endpoint=otlp_endpoint, app=app, service_name=service_name, )