2021-01-28 14:49:03 +01:00
|
|
|
Sentry.init do |config|
|
2021-05-12 15:00:13 +02:00
|
|
|
secrets = Rails.application.secrets.sentry
|
|
|
|
|
|
|
|
config.dsn = secrets[:enabled] ? secrets[:rails_client_key] : nil
|
2021-01-28 14:49:03 +01:00
|
|
|
config.send_default_pii = false
|
2021-05-12 15:00:13 +02:00
|
|
|
config.environment = secrets[:environment] || Rails.env
|
|
|
|
config.enabled_environments = ['production', secrets[:environment].presence].compact
|
2021-01-28 14:49:03 +01:00
|
|
|
config.breadcrumbs_logger = [:active_support_logger]
|
2021-05-12 15:00:13 +02:00
|
|
|
config.traces_sample_rate = secrets[:enabled] ? 0.001 : nil
|
2021-07-01 15:06:14 +02:00
|
|
|
config.delayed_job.report_after_job_retries = true
|
2021-01-28 14:49:03 +01:00
|
|
|
end
|