Skip to content

Commit a923081

Browse files
authored
Use a uniform sample rate for Sentry
Signed-off-by: Akshay Gupta <[email protected]>
1 parent 9f5924d commit a923081

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

initializers/sentry_config.rb

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ module SentryConfig
77
config.dsn = ENV["SENTRY_DSN"]
88
config.breadcrumbs_logger = [:sentry_logger, :http_logger]
99
config.enabled_environments = %w[production]
10-
# config.traces_sample_rate = 0.2
11-
config.traces_sampler = lambda do |_|
12-
return 0.0 if ENV["RACK_ENV"].eql?("staging")
13-
0.2
14-
end
10+
config.traces_sample_rate = (ENV["RACK_ENV"].eql?("staging") ? 0.0 : 0.2)
1511
config.logger.level = Logger::WARN
1612
end
1713
end

0 commit comments

Comments
 (0)