class Airbrake::Sidekiq::ErrorHandler

def call(_worker, context, _queue, &block)

def call(_worker, context, _queue, &block)
  timing = Airbrake::Benchmark.measure(&block)
rescue Exception => exception # rubocop:disable Lint/RescueException
  notify_airbrake(exception, context)
  Airbrake.notify_queue(
    queue: context['class'],
    error_count: 1,
    timing: 0.01,
  )
  raise exception
else
  Airbrake.notify_queue(
    queue: context['class'],
    error_count: 0,
    timing: timing,
  )
end