Class: TraceId::SidekiqClientMiddleware

Inherits:
Object
  • Object
show all
Defined in:
lib/trace_id/sidekiq_client_middleware.rb

Instance Method Summary collapse

Instance Method Details

#call(worker_class, job, queue, redis_pool) ⇒ Object



3
4
5
6
# File 'lib/trace_id/sidekiq_client_middleware.rb', line 3

def call(worker_class, job, queue, redis_pool)
  job[TraceId::TRACE_ID] = TraceId.get_or_initialize
  yield
end