Introduces sentry, removes airbrake

Sentry is the premiere FOSS error tracking app.
This commit is contained in:
Henne Vogelsang 2021-03-05 17:00:49 +01:00
parent 3faee06e48
commit b4b20bd135
No known key found for this signature in database
GPG key ID: 9D6164C2955FADE0
6 changed files with 24 additions and 37 deletions

View file

@ -0,0 +1,12 @@
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