Class: Raven::SidekiqErrorHandler

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

Constant Summary collapse

ACTIVEJOB_RESERVED_PREFIX =
"_aj_".freeze
HAS_GLOBALID =
const_defined?('GlobalID')

Instance Method Summary collapse

Instance Method Details

#call(ex, context) ⇒ Object


19
20
21
22
23
24
25
26
27
28
29
# File 'lib/raven/integrations/sidekiq.rb', line 19

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