Skip to content

Commit

Permalink
Enable configuration of the Sentry sample rate using env (#5319)
Browse files Browse the repository at this point in the history
Enable configuration of the Sentry sample rate using the env

**Story card:**
[sc-11416](https://app.shortcut.com/simpledotorg/story/11416)

## Because
The monthly quota for Sentry events is being exhausted within 15 days of
usage. To address this issue, we can reduce the sample rate

## This addresses
Implement a fix for the exhaustion of the Sentry monthly events quota by
adjusting the sample rate
  • Loading branch information
roypeter authored Nov 6, 2023
1 parent af39103 commit 5a02985
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/initializers/sentry.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Sentry.init do |config|
config.sample_rate = ENV.fetch("SENTRY_SAMPLE_RATE", 1.0).to_f
end

0 comments on commit 5a02985

Please sign in to comment.