From 554fc3f5728202bbb13073ee2b44c07a2fcde8ab Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Wed, 28 Aug 2024 14:23:42 +0200 Subject: [PATCH] chore(Sentry): add Sentry environment variable (net or org). ref #400 --- config/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/config/settings.py b/config/settings.py index 6c35667e..124a1887 100644 --- a/config/settings.py +++ b/config/settings.py @@ -218,6 +218,7 @@ sentry_sdk.init( dsn=os.getenv("SENTRY_DSN"), integrations=[DjangoIntegration()], + environment=os.getenv("ENVIRONMENT"), # Set traces_sample_rate to 1.0 to capture 100% of transactions for tracing. # noqa traces_sample_rate=1.0, # Set profiles_sample_rate to 1.0 to profile 100% of sampled transactions. # noqa