Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: remove old otel config files (#1310)
cthomas80150b2a4303
diff --git a/Dockerfile b/Dockerfileindex 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:4317WORKDIR /appdiff --git a/letta/server/rest_api/app.py b/letta/server/rest_api/app.pyindex 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_tracingsetup_tracing(- endpoint=endpoint,+ endpoint=otlp_endpoint,app=app,service_name=service_name,)