Class: Honeybadger::Plugins::Shoryuken::Middleware Private

Inherits:
Object
  • Object
show all
Defined in:
lib/honeybadger/plugins/shoryuken.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#call(_worker, _queue, sqs_msg, body) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/honeybadger/plugins/shoryuken.rb', line 8

def call(_worker, _queue, sqs_msg, body)
  begin
    yield
  rescue => e
    if attempt_threshold <= receive_count(sqs_msg)
      Honeybadger.notify(e, parameters: notification_params(body))
    end

    raise e
  end
ensure
  Honeybadger.clear!
end