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