Class: Marginalia::SidekiqInstrumentation::Middleware

Inherits:
Object
  • Object
show all
Defined in:
lib/marginalia/sidekiq_instrumentation.rb

Instance Method Summary collapse

Instance Method Details

#call(worker, msg, queue) ⇒ Object



7
8
9
10
11
12
# File 'lib/marginalia/sidekiq_instrumentation.rb', line 7

def call(worker, msg, queue)
  Marginalia::Comment.update_job! msg
  yield
ensure
  Marginalia::Comment.clear_job!
end