Class: Errsight::Sidekiq::ClientMiddleware

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::ClientMiddleware
Defined in:
lib/errsight/sidekiq.rb

Instance Method Summary collapse

Instance Method Details

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



98
99
100
101
102
# File 'lib/errsight/sidekiq.rb', line 98

def call(_worker_class, job, _queue, _redis_pool)
  snapshot = scope_snapshot
  job["errsight_scope"] = snapshot unless snapshot.empty?
  yield
end