Finish upgrading the sentry plugin

This commit is contained in:
Michael Ball 2021-02-20 09:50:48 -08:00
parent fcbbd54f84
commit c107f36f6d
4 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
Raven.configure do |config|
Sentry.init do |config|
config.allowed_environments = %|production staging|
config.dsn = ENV['SENTRY_DSN']
config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s)
end

View file

@ -44,7 +44,7 @@ on_worker_boot do
end
lowlevel_error_handler do |ex, env|
Raven.capture_exception(
Sentry.capture_exception(
ex,
:message => ex.message,
:extra => { :puma => env },