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

Version Path
appsignal-2.5.3-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.3 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.3.alpha.2 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.3.alpha.2-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.3.alpha.1 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.3.alpha.1-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.2-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.2 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.1-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.1 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.1.beta.1-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.1.beta.1 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.0-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.0 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.0.beta.1-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.0.beta.1 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.0.alpha.1-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.5.0.alpha.1 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.4.3 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.4.2 lib/appsignal/integrations/resque_active_job.rb