Skip to content

Commit

Permalink
Update the sentry initialization to meet the requirements for hosted …
Browse files Browse the repository at this point in the history
…sentry.io.
  • Loading branch information
ntoll committed Jan 25, 2021
1 parent bf5490c commit 2590ef1
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 2590ef1

Please sign in to comment.