class Tracebin::BackgroundJobInstrumentation::Sidekiq

Public Instance Methods

call(worker, msg, queue, *args) { || ... } click to toggle source
# File lib/tracebin/background_job_instrumentation/sidekiq.rb, line 7
def call(worker, msg, queue, *args)
  timer = BackgroundTimer.new worker.class.name.split('::').last
  timer.start!

  yield

  timer.stop!

  PuppetMaster.new(timer, logger: worker.logger).process
end