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

@ -143,6 +143,7 @@ gem 'axlsx_rails'
gem 'sentry-ruby' gem 'sentry-ruby'
gem 'sentry-rails' gem 'sentry-rails'
gem 'sentry-delayed_job'
# to make links faster # to make links faster
gem 'turbolinks' gem 'turbolinks'

View file

@ -525,6 +525,8 @@ GEM
selenium-webdriver (3.142.6) selenium-webdriver (3.142.6)
childprocess (>= 0.5, < 4.0) childprocess (>= 0.5, < 4.0)
rubyzip (>= 1.2.2) rubyzip (>= 1.2.2)
sentry-delayed_job (4.2.1)
sentry-ruby-core (~> 4.2.0)
sentry-rails (4.2.2) sentry-rails (4.2.2)
rails (>= 5.0) rails (>= 5.0)
sentry-ruby-core (~> 4.2.0) sentry-ruby-core (~> 4.2.0)
@ -712,6 +714,7 @@ DEPENDENCIES
ruby-oembed ruby-oembed
sass-rails (>= 4.0.2) sass-rails (>= 4.0.2)
selectize-rails selectize-rails
sentry-delayed_job
sentry-rails sentry-rails
sentry-ruby sentry-ruby
shoulda-matchers shoulda-matchers

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.dsn = ENV['SENTRY_DSN']
config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s)
end end

View file

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