Skip to content

Commit

Permalink
Disable sampling rate for staging
Browse files Browse the repository at this point in the history
  • Loading branch information
kitallis committed May 24, 2024
1 parent 859d1c7 commit 4b7cf2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion initializers/sentry_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ module SentryConfig
config.dsn = ENV["SENTRY_DSN"]
config.breadcrumbs_logger = [:sentry_logger, :http_logger]
config.enabled_environments = %w[production]
config.traces_sample_rate = 0.2
# config.traces_sample_rate = 0.2
config.traces_sampler = lambda do |_|
return 0.0 if ENV["RACK_ENV"].eql?("staging")
0.2
end
config.logger.level = Logger::WARN
end
end
Expand Down

0 comments on commit 4b7cf2c

Please sign in to comment.