Class: Raven::SidekiqCleanupMiddleware

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

Instance Method Summary collapse

Instance Method Details

#call(_worker, job, queue) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/raven/integrations/sidekiq.rb', line 6

def call(_worker, job, queue)
  Raven.context.transaction.push "Sidekiq/#{job['class']}"
  Raven.extra_context(:sidekiq => job.merge("queue" => queue))
  yield
  Context.clear!
  BreadcrumbBuffer.clear!
end