From 5b08af694824776a50d3ed46aa26281fffec5b97 Mon Sep 17 00:00:00 2001 From: phzhik Date: Sun, 26 May 2024 02:41:13 +0400 Subject: [PATCH] + SENTRY_ENVIRONMENT in env file --- .env.template | 5 ++++- poizonstore/settings.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.env.template b/.env.template index d95a0a4..3e68627 100644 --- a/.env.template +++ b/.env.template @@ -21,4 +21,7 @@ CURRENCY_GETGEOIP_API_KEY="" FLOWER_BASIC_AUTH="login:pwd" # Logging -SENTRY_DSN="" \ No newline at end of file +SENTRY_DSN="" + +# production/stage +SENTRY_ENVIRONMENT="" \ No newline at end of file diff --git a/poizonstore/settings.py b/poizonstore/settings.py index 8b5af89..20d7080 100644 --- a/poizonstore/settings.py +++ b/poizonstore/settings.py @@ -251,6 +251,7 @@ if SENTRY_DSN: # of sampled transactions. # We recommend adjusting this value in production. profiles_sample_rate=1.0, + environment=get_secret("SENTRY_ENVIRONMENT"), ) # Celery