Skip to content

Commit

Permalink
move sentry to end of file
Browse files Browse the repository at this point in the history
  • Loading branch information
DasUnicorn committed Aug 31, 2023
1 parent b76e77a commit 017866c
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions bundeswehrbung/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,6 @@
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent


sentry_sdk.init(
dsn="https://38ad8c7d598d4396a99291cf30a5f818@o4505573653020672.ingest.sentry.io/4505573656231936",
integrations=[DjangoIntegration()],

# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
# We recommend adjusting this value in production.
traces_sample_rate=1.0,

# If you wish to associate users to errors (assuming you are using
# django.contrib.auth) you may enable sending PII data.
send_default_pii=True
)


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/

Expand Down Expand Up @@ -149,6 +133,20 @@

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

sentry_sdk.init(
dsn="https://38ad8c7d598d4396a99291cf30a5f818@o4505573653020672.ingest.sentry.io/4505573656231936",
integrations=[DjangoIntegration()],

# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
# We recommend adjusting this value in production.
traces_sample_rate=1.0,

# If you wish to associate users to errors (assuming you are using
# django.contrib.auth) you may enable sending PII data.
send_default_pii=True
)

try:
from bundeswehrbung.settings_local import *
except ImportError:
Expand Down

0 comments on commit 017866c

Please sign in to comment.