demarches-normaliennes/config/initializers/sentry.rb

8 lines
282 B
Ruby
Raw Normal View History

2021-01-28 14:49:03 +01:00
Sentry.init do |config|
config.dsn = ENV['SENTRY_ENABLED'] == 'enabled' ? ENV['SENTRY_DSN_RAILS'] : nil
config.send_default_pii = false
config.enabled_environments = ['production']
config.breadcrumbs_logger = [:active_support_logger]
2021-02-11 16:08:06 +01:00
config.traces_sample_rate = 0.001
2021-01-28 14:49:03 +01:00
end