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