Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Configurable traces sampling rate for Sentry #1360

Merged
merged 6 commits into from
Apr 20, 2023
Merged

Conversation

thekaveman
Copy link
Member

@thekaveman thekaveman commented Apr 14, 2023

Related to #1359 and this Slack thread, more work to reduce unnecessary traffic we send to Sentry.

This PR introduces an environment-specific configuration for the Sentry traces_sample_rate setting using our standard environment variable / key vault pattern.

The new default is 0.0, so this has to be turned on explicitly. Before we were hard-coding to 1.0 (i.e. send 100% of transactions) in all environments.

This is temporarily on top of #1358 because that PR also introduced a new Sentry config, though otherwise unrelated.

@thekaveman thekaveman added this to the Reliability milestone Apr 14, 2023
@thekaveman thekaveman requested a review from a team as a code owner April 14, 2023 19:04
@github-actions github-actions bot added back-end Django views, sessions, middleware, models, migrations etc. tests Related to automated testing (unit, UI, integration, etc.) labels Apr 14, 2023
angela-tran
angela-tran previously approved these changes Apr 14, 2023
Base automatically changed from feat/strict-csp to dev April 20, 2023 19:43
@thekaveman thekaveman merged commit cdec5fb into dev Apr 20, 2023
@thekaveman thekaveman deleted the fix/sentry-sampling branch April 20, 2023 21:32
thekaveman added a commit to cal-itp/eligibility-server that referenced this pull request Oct 11, 2023
thekaveman added a commit to cal-itp/eligibility-server that referenced this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Django views, sessions, middleware, models, migrations etc. tests Related to automated testing (unit, UI, integration, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants