Class: TraceId::SidekiqServerMiddleware

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

Instance Method Summary collapse

Instance Method Details

#call(worker, job, queue) ⇒ Object



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

def call(worker, job, queue)
  TraceId.set(job[TraceId::TRACE_ID])
  yield
end