Class: Profiler::Instrumentation::SidekiqMiddleware
- Inherits:
-
Object
- Object
- Profiler::Instrumentation::SidekiqMiddleware
- Defined in:
- lib/profiler/instrumentation/sidekiq_middleware.rb
Instance Method Summary collapse
Instance Method Details
#call(worker, job, queue, &block) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/profiler/instrumentation/sidekiq_middleware.rb', line 6 def call(worker, job, queue, &block) Profiler::JobProfiler.profile( job_class: job["class"], job_id: job["jid"], queue: queue, arguments: job["args"], executions: job["retry_count"].to_i, &block ) end |