module Resque::Plugins::OneApmInstrumentation
Public Instance Methods
around_perform_with_monitoring(*args) { |*args| ... }
click to toggle source
# File lib/one_apm/inst/background_job/resque.rb, line 21 def around_perform_with_monitoring(*args) begin perform_action_with_oneapm_trace( :name => 'perform', :class_name => self.name, :category => 'OtherTransaction/ResqueJob') do if OneApm::Manager.config[:'resque.capture_params'] OneApm::Manager.add_custom_parameters(:job_arguments => args) end yield(*args) end ensure OneApm::Manager.agent.flush_pipe_data end end