Sha256: d6a08ce3b67ceaebc3ccaeb9619143d233a8dcc62aa4da61b3b40e89cc4ad298
Contents?: true
Size: 827 Bytes
Versions: 35
Compression:
Stored size: 827 Bytes
Contents
module Appsignal module Integrations # @api private module ResqueActiveJobPlugin include Appsignal::Hooks::Helpers def self.included(base) base.class_eval do around_perform do |job, block| params = Appsignal::Utils::ParamsSanitizer.sanitize job.arguments, :filter_parameters => Appsignal.config[:filter_parameters] Appsignal.monitor_single_transaction( "perform_job.resque", :class => job.class.to_s, :method => "perform", :params => params, :metadata => { :id => job.job_id, :queue => job.queue_name } ) do block.call end end end end end end end
Version data entries
35 entries across 35 versions & 1 rubygems