Class: Sidekiq::Metrics::Middleware
- Inherits:
-
Object
- Object
- Sidekiq::Metrics::Middleware
- Includes:
- ServerMiddleware
- Defined in:
- lib/sidekiq/metrics/tracking.rb
Instance Attribute Summary
Attributes included from ServerMiddleware
Instance Method Summary collapse
- #call(_instance, hash, queue, &block) ⇒ Object
-
#initialize(options) ⇒ Middleware
constructor
A new instance of Middleware.
Methods included from ServerMiddleware
Constructor Details
#initialize(options) ⇒ Middleware
Returns a new instance of Middleware.
129 130 131 |
# File 'lib/sidekiq/metrics/tracking.rb', line 129 def initialize() @exec = end |
Instance Method Details
#call(_instance, hash, queue, &block) ⇒ Object
133 134 135 |
# File 'lib/sidekiq/metrics/tracking.rb', line 133 def call(_instance, hash, queue, &block) @exec.track(queue, hash["wrapped"] || hash["class"], &block) end |