Skip to content

Commit

Permalink
Merge pull request #867 from ministryofjustice/sentry-move
Browse files Browse the repository at this point in the history
Update the sentry initialization to meet the requirements for hosted sentry.io
  • Loading branch information
Nicholas Tollervey authored Jan 25, 2021
2 parents bf5490c + 2590ef1 commit 0574821
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controlpanel/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,8 @@
dsn=os.environ["SENTRY_DSN"],
environment=os.environ.get("ENV", "dev"),
integrations=[DjangoIntegration()],
traces_sample_rate=0.0,
send_default_pii=True,
)
if "shell" in sys.argv or "shell_plus" in sys.argv:
sentry_sdk.init(
Expand Down

0 comments on commit 0574821

Please sign in to comment.