Class: ScoutApmSampler::BackgroundJobSampler
- Inherits:
-
Object
- Object
- ScoutApmSampler::BackgroundJobSampler
- Defined in:
- lib/scout_apm_sampler/background_job_sampler.rb
Instance Method Summary collapse
Instance Method Details
#call(worker, msg, queue) ⇒ Object
3 4 5 6 |
# File 'lib/scout_apm_sampler/background_job_sampler.rb', line 3 def call(worker, msg, queue) disable_scout_instrumentation unless instrument_job? yield end |