Use server side PII rules

This commit is contained in:
Sonny Bakker 2021-04-25 20:17:36 +02:00
parent 392900956c
commit 9e572534aa
2 changed files with 1 additions and 3 deletions

View file

@ -10,7 +10,6 @@ load_dotenv()
try: try:
from sentry_sdk.integrations.celery import CeleryIntegration from sentry_sdk.integrations.celery import CeleryIntegration
from sentry_sdk.integrations.django import DjangoIntegration from sentry_sdk.integrations.django import DjangoIntegration
from .sentry import sentry_filter
except ImportError: except ImportError:
CeleryIntegration = None CeleryIntegration = None
DjangoIntegration = None DjangoIntegration = None
@ -261,9 +260,8 @@ ACCOUNT_ACTIVATION_DAYS = 7
# Sentry # Sentry
SENTRY_CONFIG = { SENTRY_CONFIG = {
"dsn": os.environ.get("SENTRY_DSN"), "dsn": os.environ.get("SENTRY_DSN"),
"send_default_pii": True, "send_default_pii": False,
"environment": ENVIRONMENT, "environment": ENVIRONMENT,
"before_send": sentry_filter,
"integrations": [DjangoIntegration(), CeleryIntegration()] "integrations": [DjangoIntegration(), CeleryIntegration()]
if DjangoIntegration and CeleryIntegration if DjangoIntegration and CeleryIntegration
else [], else [],

View file