We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f5924d commit a923081Copy full SHA for a923081
initializers/sentry_config.rb
@@ -7,11 +7,7 @@ module SentryConfig
7
config.dsn = ENV["SENTRY_DSN"]
8
config.breadcrumbs_logger = [:sentry_logger, :http_logger]
9
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
+ config.traces_sample_rate = (ENV["RACK_ENV"].eql?("staging") ? 0.0 : 0.2)
15
config.logger.level = Logger::WARN
16
end
17
0 commit comments