Sha256: ec851baf234527a25e6e69ed15be3cd10cfa908df9de45f088aa4874cc56760f

Contents?: true

Size: 683 Bytes

Versions: 57

Compression:

Stored size: 683 Bytes

Contents

module Appsignal
  module Integrations
    module ResqueActiveJobPlugin
      include Appsignal::Hooks::Helpers

      def self.included(base)
        base.class_eval do

          around_perform do |job, block|
            Appsignal.monitor_single_transaction(
              'perform_job.resque',
              :class    => job.class.to_s,
              :method   => 'perform',
              :params   => job.format_args(job.arguments),
              :metadata => {
                :id       => job.job_id,
                :queue    => job.queue_name
              },
            ) do
              block.call
            end
          end

        end
      end

    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
appsignal-2.0.6 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.0.5 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.0.5.beta.1 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.1.0.alpha.3 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.1.0.alpha.2 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.1.0.alpha.1 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.0.4 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.0.3 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.0.2 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.0.1 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.0.0 lib/appsignal/integrations/resque_active_job.rb
appsignal-2.0.0.beta.1 lib/appsignal/integrations/resque_active_job.rb
appsignal-1.4.0.beta.1 lib/appsignal/integrations/resque_active_job.rb
appsignal-1.3.6 lib/appsignal/integrations/resque_active_job.rb
appsignal-1.3.6.beta.1 lib/appsignal/integrations/resque_active_job.rb
appsignal-1.3.5 lib/appsignal/integrations/resque_active_job.rb
appsignal-1.3.5.beta.1 lib/appsignal/integrations/resque_active_job.rb
appsignal-1.3.4 lib/appsignal/integrations/resque_active_job.rb
appsignal-1.3.3 lib/appsignal/integrations/resque_active_job.rb
appsignal-1.4.0.alpha.2 lib/appsignal/integrations/resque_active_job.rb