Class: SharkOnLambda::Middleware::Honeybadger
- Defined in:
- lib/shark_on_lambda/middleware/honeybadger.rb
Instance Attribute Summary collapse
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
Attributes inherited from Base
Instance Method Summary collapse
- #call!(env) ⇒ Object
-
#initialize(app, tags: '') ⇒ Honeybadger
constructor
A new instance of Honeybadger.
Methods inherited from Base
Constructor Details
#initialize(app, tags: '') ⇒ Honeybadger
Returns a new instance of Honeybadger.
8 9 10 11 12 |
# File 'lib/shark_on_lambda/middleware/honeybadger.rb', line 8 def initialize(app, tags: '') super(app) @tags = end |
Instance Attribute Details
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
6 7 8 |
# File 'lib/shark_on_lambda/middleware/honeybadger.rb', line 6 def @tags end |
Instance Method Details
#call!(env) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/shark_on_lambda/middleware/honeybadger.rb', line 14 def call!(env) app.call(env) rescue StandardError => e notify(e, env) unless shark_error?(e) && client_error?(e) raise e end |