Class: Bugsnag::Shoryuken
- Inherits:
-
Object
- Object
- Bugsnag::Shoryuken
- Defined in:
- lib/bugsnag/shoryuken.rb
Instance Method Summary collapse
- #call(_, queue, _, body) ⇒ Object
-
#initialize ⇒ Shoryuken
constructor
A new instance of Shoryuken.
Constructor Details
#initialize ⇒ Shoryuken
Returns a new instance of Shoryuken.
5 6 7 8 |
# File 'lib/bugsnag/shoryuken.rb', line 5 def initialize Bugsnag.configuration.app_type = "shoryuken" Bugsnag.configuration.default_delivery_method = :synchronous end |
Instance Method Details
#call(_, queue, _, body) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/bugsnag/shoryuken.rb', line 10 def call(_, queue, _, body) begin Bugsnag.before_notify_callbacks << lambda {|notification| notification.add_tab(:shoryuken, { queue: queue, body: body }) } yield rescue Exception => ex Bugsnag.auto_notify(ex) unless [Interrupt, SystemExit, SignalException].include?(ex.class) raise ensure Bugsnag.clear_request_data end end |