Class: Profiler::Instrumentation::SidekiqClientMiddleware

Inherits:
Object
  • Object
show all
Defined in:
lib/profiler/instrumentation/sidekiq_middleware.rb

Instance Method Summary collapse

Instance Method Details

#call(_worker_class, job, _queue, _redis_pool) ⇒ Object



6
7
8
9
# File 'lib/profiler/instrumentation/sidekiq_middleware.rb', line 6

def call(_worker_class, job, _queue, _redis_pool)
  job["profiler_parent_token"] = Profiler::CurrentContext.token
  yield
end