Add sentry for error tracing

This commit is contained in:
Sebastian Serth
2020-01-14 14:38:43 +01:00
parent 54a2a0df6e
commit a551760965
3 changed files with 28 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
# frozen_string_literal: true
require 'concurrent'
Rails.application.tap do |app|
pool = ::Concurrent::ThreadPoolExecutor.new(max_queue: 10)
Raven.configure do |config|
config.sanitize_fields = app.config.filter_parameters.map(&:to_s)
config.async = lambda do |event|
pool.post { ::Raven.send_event(event) }
end
# Do not sent full list of gems with each event
config.send_modules = false
end
end