Class: Raygun::SidekiqMiddleware

Inherits:
Object
  • Object
show all
Defined in:
lib/raygun/sidekiq.rb

Overview

Used for Sidekiq 2.x only

Instance Method Summary collapse

Instance Method Details

#call(worker, message, queue) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/raygun/sidekiq.rb', line 9

def call(worker, message, queue)
  begin
    yield
  rescue Exception => ex
    raise ex if [Interrupt, SystemExit, SignalException].include?(ex.class)
    SidekiqReporter.call(ex, worker: worker, message: message, queue: queue)
    raise ex
  end
end