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

Version Path
appsignal-2.10.9.beta.1-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.9.beta.1 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.8 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.8-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.7-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.7 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.6-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.6 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.6.beta.1-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.6.beta.1 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.5-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.5 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.4 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.4-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.3-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.3 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.2-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.2 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.1-java lib/appsignal/integrations/resque_active_job.rb
appsignal-2.10.1 lib/appsignal/integrations/resque_active_job.rb