root: fix sentry's being passed incorrectly

This commit is contained in:
Jens Langhammer 2020-08-20 23:12:54 +02:00
parent f7c629ec9b
commit 9826bb4d01
2 changed files with 5 additions and 3 deletions

View file

@ -101,4 +101,4 @@ jobs:
SENTRY_URL: https://sentry.beryju.org
with:
tagName: 0.9.0-stable
environment: production
environment: beryjuorg-prod

View file

@ -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),
)