From 4bdf85b8835768d5075c6b0c5c9ca92ea97a98bb Mon Sep 17 00:00:00 2001 From: Kian Jones <11655409+kianjones9@users.noreply.github.com> Date: Fri, 26 Sep 2025 17:21:25 -0700 Subject: [PATCH] feat: pull letta env for sentry init (#4966) set env on sentry init --- letta/server/rest_api/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/letta/server/rest_api/app.py b/letta/server/rest_api/app.py index 0d06489f..147496f5 100644 --- a/letta/server/rest_api/app.py +++ b/letta/server/rest_api/app.py @@ -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,