Sha256: 56ac98929e419dd22277cc684007dacdd17cc5431fd942ae3f10c2dd80098d39
Contents?: true
Size: 441 Bytes
Versions: 5
Compression:
Stored size: 441 Bytes
Contents
module Sidekiq module Tracer class ClientMiddleware def call(_worker_class, job, _queue, _redis_pool) job["root_trace"] = root_trace yield end private def root_trace if Thread.current[:sidekiq_root_trace] && Thread.current[:sidekiq_root_trace].last return Thread.current[:sidekiq_root_trace].last end SecureRandom.uuid end end end end
Version data entries
5 entries across 5 versions & 1 rubygems