Class: Eventboss::ErrorHandlers::Rollbar

Inherits:
Object
  • Object
show all
Defined in:
lib/eventboss/error_handlers/rollbar.rb

Instance Method Summary collapse

Instance Method Details

#call(exception, context = {}) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/eventboss/error_handlers/rollbar.rb', line 4

def call(exception, context = {})
  eventboss_context = { component: 'eventboss' }
  eventboss_context[:action] = context[:processor].class.to_s if context[:processor]

  default_options = { use_exception_level_filters: true }

  ::Rollbar.error(
    exception,
    context.merge(eventboss_context, default_options)
  )
end