root: when error_reporting is enabled, don't sent pii data by default

This commit is contained in:
Jens Langhammer
2020-08-20 22:19:49 +02:00
parent e2aeb96a6a
commit f7c629ec9b
5 changed files with 6 additions and 1 deletions

View File

@ -275,11 +275,12 @@ if not DEBUG and _ERROR_REPORTING:
sentry_init(
dsn="https://33cdbcb23f8b436dbe0ee06847410b67@sentry.beryju.org/3",
integrations=[DjangoIntegration(), CeleryIntegration()],
send_default_pii=True,
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),
)