From 625f338c94962f0c088e8bb9453621ba2f598d1c Mon Sep 17 00:00:00 2001 From: paulmwatson Date: Mon, 23 Oct 2023 12:24:27 +0200 Subject: [PATCH] Set traces_sample_rate to SENTRY_TRACES_SAMPLE_RATE env default 0.01 --- pombola/settings/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pombola/settings/base.py b/pombola/settings/base.py index c08676f9c..f3298cde6 100644 --- a/pombola/settings/base.py +++ b/pombola/settings/base.py @@ -723,7 +723,7 @@ def before_send(event, hint): environment=os.environ.get("ENVIRONMENT"), integrations=[DjangoIntegration()], before_send=before_send, - traces_sample_rate=0.01, + traces_sample_rate=os.environ.get("SENTRY_TRACES_SAMPLE_RATE", 0.01), # Associate users to errors send_default_pii=True )