Class: Airbrake::Sneakers::ErrorReporter
- Inherits:
-
Object
- Object
- Airbrake::Sneakers::ErrorReporter
- Defined in:
- lib/airbrake/sneakers.rb
Overview
Provides integration with Sneakers.
Constant Summary collapse
- IGNORED_KEYS =
Returns ignored keys values of which raise SystemStackError when ‘as_json` is called on them.
%i[delivery_tag consumer channel].freeze
Instance Method Summary collapse
-
#call(exception, worker = nil, context) ⇒ Object
rubocop:disable Style/OptionalArguments.
Instance Method Details
#call(exception, worker = nil, context) ⇒ Object
rubocop:disable Style/OptionalArguments
16 17 18 19 20 21 22 |
# File 'lib/airbrake/sneakers.rb', line 16 def call(exception, worker = nil, context) # Later versions add a middle argument. Airbrake.notify(exception, filter_context(context)) do |notice| notice[:context][:component] = 'sneakers' notice[:context][:action] = worker.class.to_s end end |