Class: Raven::SidekiqErrorHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/raven/integrations/sidekiq.rb

Constant Summary collapse

ACTIVEJOB_RESERVED_PREFIX =
"_aj_".freeze

Instance Method Summary collapse

Instance Method Details

#call(ex, context) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/raven/integrations/sidekiq.rb', line 16

def call(ex, context)
  context = filter_context(context)
  Raven.capture_exception(
    ex,
    :message => ex.message,
    :extra => { :sidekiq => context },
    :culprit => culprit_from_context(context)
  )
  Context.clear!
  BreadcrumbBuffer.clear!
end