Class: Eventboss::ErrorHandlers::Airbrake
- Inherits:
-
Object
- Object
- Eventboss::ErrorHandlers::Airbrake
- Defined in:
- lib/eventboss/error_handlers/airbrake.rb
Instance Method Summary collapse
Instance Method Details
#call(exception, context = {}) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/eventboss/error_handlers/airbrake.rb', line 4 def call(exception, context = {}) ::Airbrake.notify(exception) do |notice| notice[:context][:component] = 'eventboss' notice[:context][:action] = context[:processor].class.to_s if context[:processor] notice[:context].merge!(context) end end |