Skip to content

Commit

Permalink
Move Sentry DNS to .env
Browse files Browse the repository at this point in the history
  • Loading branch information
neoformit committed Jan 13, 2025
1 parent f3a5abc commit 4eb3523
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webapp/webapp/settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
RECAPTCHA_PUBLIC_KEY = os.environ.get('RECAPTCHA_SITE_KEY')
RECAPTCHA_PRIVATE_KEY = os.environ.get('RECAPTCHA_SECRET_KEY')

SENTRY_DNS_URL = os.environ.get('SENTRY_DNS_URL')

# See base.py for mail config, read from .env

ADMINS = [
Expand All @@ -69,7 +71,7 @@
'.ManifestStaticFilesStorage')

sentry_sdk.init(
dsn="https://[email protected]/20",
dsn=SENTRY_DNS_URL,
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for tracing.
traces_sample_rate=1.0,
Expand Down

0 comments on commit 4eb3523

Please sign in to comment.