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
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/profiler/instrumentation/sidekiq_middleware.rb', line 13 def call(worker, job, queue, &block) Profiler.env_override_store.apply! Profiler::JobProfiler.profile( job_class: job["class"], job_id: job["jid"], queue: queue, arguments: job["args"], executions: job["retry_count"].to_i, parent_token: job["profiler_parent_token"], &block ) end |