fix: remove old otel config files (#1310)

This commit is contained in:
cthomas
2025-03-16 14:36:32 -07:00
committed by GitHub
parent d79d9a599e
commit edab956d0b
2 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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,
)