Skip to content

Commit

Permalink
Set traces_sample_rate to SENTRY_TRACES_SAMPLE_RATE env default 0.01
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmwatson committed Oct 23, 2023
1 parent 4df3e0c commit 625f338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pombola/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ def before_send(event, hint):
environment=os.environ.get("ENVIRONMENT"),
integrations=[DjangoIntegration()],
before_send=before_send,
traces_sample_rate=0.01,
traces_sample_rate=os.environ.get("SENTRY_TRACES_SAMPLE_RATE", 0.01),
# Associate users to errors
send_default_pii=True
)

0 comments on commit 625f338

Please sign in to comment.