class Pantomath::Instrumentation::Sidekiq::Adapter

Public Instance Methods

call(*args) { || ... } click to toggle source
# File lib/pantomath/instrumentation/sidekiq/adapter.rb, line 10
def call(*args)
  tracer(*args).trace { yield }
end

Private Instance Methods

tracer(worker, job, queue) click to toggle source
# File lib/pantomath/instrumentation/sidekiq/adapter.rb, line 15
def tracer(worker, job, queue)
  context = OpenStruct.new(worker: worker, job: job, queue: queue)
  Tracer.new(context)
end