Class: Airbrake::Sneakers::ErrorReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/airbrake/sneakers.rb

Overview

Provides integration with Sneakers.

See Also:

Since:

  • v7.2.0

Constant Summary collapse

IGNORED_KEYS =

Returns ignored keys values of which raise SystemStackError when ‘as_json` is called on them.

Returns:

  • (Array<Symbol>)

    ignored keys values of which raise SystemStackError when ‘as_json` is called on them

See Also:

Since:

  • v7.2.0

%i[delivery_tag consumer channel].freeze

Instance Method Summary collapse

Instance Method Details

#call(exception, worker = nil, context) ⇒ Object

rubocop:disable Style/OptionalArguments

Since:

  • v7.2.0



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