Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

fix: remove old otel config files (#1310)

cthomasedab956d0b35
diff --git a/Dockerfile b/Dockerfile
index 0e99ff195..e5cae4650 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 d6aa2ef81..4acfb591a 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,
)