osem-fcy/config/initializers/sentry.rb
Henne Vogelsang b4b20bd135
Introduces sentry, removes airbrake
Sentry is the premiere FOSS error tracking app.
2021-03-06 23:13:59 +01:00

12 lines
391 B
Ruby

Sentry.init do |config|
config.dsn = ENV.fetch('OSEM_SENTRY_DSN', Rails.application.secrets.sentry_dsn)
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
end