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.

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

Kian Jones4bdf85b88357
diff --git a/letta/server/rest_api/app.py b/letta/server/rest_api/app.py
index 0d06489f5..147496f5a 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,