2021-02-20 09:50:48 -08:00
|
|
|
Sentry.init do |config|
|
2021-02-20 09:55:21 -08:00
|
|
|
config.enabled_environments = %|production staging|
|
2020-02-19 13:16:48 -08:00
|
|
|
config.dsn = ENV['SENTRY_DSN']
|
2021-02-21 01:14:24 -08:00
|
|
|
config.breadcrumbs_logger = [:active_support_logger]
|
|
|
|
|
|
|
|
|
|
# To activate performance monitoring, set one of these options.
|
|
|
|
|
# We recommend adjusting the value in production:
|
|
|
|
|
config.traces_sample_rate = 0.5
|
|
|
|
|
# or
|
|
|
|
|
# config.traces_sampler = lambda do |context|
|
|
|
|
|
# true
|
|
|
|
|
# end
|
2020-02-19 13:16:48 -08:00
|
|
|
end
|