Class: Bugsnag::Middleware::Sidekiq
- Inherits:
-
Object
- Object
- Bugsnag::Middleware::Sidekiq
- Defined in:
- lib/bugsnag/middleware/sidekiq.rb
Instance Method Summary collapse
- #call(notification) ⇒ Object
-
#initialize(bugsnag) ⇒ Sidekiq
constructor
A new instance of Sidekiq.
Constructor Details
#initialize(bugsnag) ⇒ Sidekiq
Returns a new instance of Sidekiq.
3 4 5 |
# File 'lib/bugsnag/middleware/sidekiq.rb', line 3 def initialize(bugsnag) @bugsnag = bugsnag end |
Instance Method Details
#call(notification) ⇒ Object
7 8 9 10 11 |
# File 'lib/bugsnag/middleware/sidekiq.rb', line 7 def call(notification) sidekiq = notification.request_data[:sidekiq] notification.add_tab(:sidekiq, sidekiq) if sidekiq @bugsnag.call(notification) end |