class Airbrake::Sidekiq::ErrorHandler
Public Instance Methods
call(_worker, context, _queue) { || ... }
click to toggle source
rubocop:disable Lint/RescueException
# File lib/airbrake/sidekiq/error_handler.rb, line 7 def call(_worker, context, _queue) yield rescue Exception => exception notify_airbrake(exception, context) raise exception end
Private Instance Methods
notify_airbrake(exception, context)
click to toggle source
rubocop:enable Lint/RescueException
# File lib/airbrake/sidekiq/error_handler.rb, line 17 def notify_airbrake(exception, context) params = context.merge(component: 'sidekiq', action: context['class']) Airbrake.notify(exception, params) end