From 625f338c94962f0c088e8bb9453621ba2f598d1c Mon Sep 17 00:00:00 2001 From: paulmwatson Date: Mon, 23 Oct 2023 12:24:27 +0200 Subject: [PATCH 1/2] 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 ) From b15cb3a280919a2d138af62bb0338f62c8cf9082 Mon Sep 17 00:00:00 2001 From: paulmwatson Date: Mon, 23 Oct 2023 12:51:23 +0200 Subject: [PATCH 2/2] Upgrade sentry-sdk --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 11ec29101..24ab23473 100644 --- a/requirements.txt +++ b/requirements.txt @@ -205,4 +205,4 @@ zipstream==1.1.4 xlrd==1.2.0 # Sentry -sentry-sdk==1.14.0 +sentry-sdk==1.32.0