From 9826bb4d01a4abcab56998a93a954fe58d55b5df Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 20 Aug 2020 23:12:54 +0200 Subject: [PATCH] root: fix sentry's being passed incorrectly --- .github/workflows/release.yml | 2 +- passbook/root/settings.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b3f2bde2d..020f8bf82 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -101,4 +101,4 @@ jobs: SENTRY_URL: https://sentry.beryju.org with: tagName: 0.9.0-stable - environment: production + environment: beryjuorg-prod diff --git a/passbook/root/settings.py b/passbook/root/settings.py index f471e3520..3192b4e38 100644 --- a/passbook/root/settings.py +++ b/passbook/root/settings.py @@ -274,12 +274,14 @@ if not DEBUG and _ERROR_REPORTING: LOGGER.info("Error reporting is enabled.") sentry_init( dsn="https://33cdbcb23f8b436dbe0ee06847410b67@sentry.beryju.org/3", - integrations=[DjangoIntegration(), CeleryIntegration()], + integrations=[ + DjangoIntegration(transaction_style="function_name"), + CeleryIntegration(), + ], before_send=before_send, release="passbook@%s" % __version__, traces_sample_rate=1.0, environment=CONFIG.y("error_reporting.environment", "customer"), - transaction_style="function_name", send_default_pii=CONFIG.y_bool("error_reporting.send_pii", False), )