Class: Raygun::SidekiqMiddleware
- Inherits:
-
Object
- Object
- Raygun::SidekiqMiddleware
- 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, , queue) begin yield rescue Exception => ex raise ex if [Interrupt, SystemExit, SignalException].include?(ex.class) SidekiqReporter.call(ex, worker: worker, message: , queue: queue) raise ex end end |