Class: Raven::Sidekiq

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



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/raven/integrations/sidekiq.rb', line 8

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