feat: pull letta env for sentry init (#4966)

set env on sentry init
This commit is contained in:
Kian Jones
2025-09-26 17:21:25 -07:00
committed by Caren Thomas
parent 18abcc7025
commit 4bdf85b883

View File

@@ -179,6 +179,7 @@ def create_application() -> "FastAPI":
if SENTRY_ENABLED:
sentry_sdk.init(
dsn=os.getenv("SENTRY_DSN"),
environment=os.getenv("LETTA_ENVIRONMENT", "undefined"),
traces_sample_rate=1.0,
_experiments={
"continuous_profiling_auto_start": True,