Sha256: a10eb29eb70e6e0a9a620e81a3502fc9ebee3c692347b4378f1fb10edad2e6cc
Contents?: true
Size: 863 Bytes
Versions: 114
Compression:
Stored size: 863 Bytes
Contents
# frozen_string_literal: true 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::HashSanitizer.sanitize( job.arguments, 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
114 entries across 114 versions & 1 rubygems