Sha256: 15be9a0a4fd6db04d4358df769702cc3cfb36a51e53df5ca7fd0bffdf953efca

Contents?: true

Size: 561 Bytes

Versions: 19

Compression:

Stored size: 561 Bytes

Contents

if defined?(::Resque)
  Appsignal.logger.info('Loading Resque integration')

  module Appsignal
    module Integrations
      module ResquePlugin
        def around_perform_resque_plugin(*args)
          Appsignal.monitor_single_transaction(
            'perform_job.resque',
            :class => self.to_s,
            :method => 'perform'
          ) do
            yield
          end
        end
      end
    end
  end

  # Extend the default job class with AppSignal instrumentation
  Resque::Job.send(:extend, Appsignal::Integrations::ResquePlugin)
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
appsignal-0.12.rc.7 lib/appsignal/integrations/resque.rb
appsignal-0.12.rc.6 lib/appsignal/integrations/resque.rb
appsignal-0.12.rc.5 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.54 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.53 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.52 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.51 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.50 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.49 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.48 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.47 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.46 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.45 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.44 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.43 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.42 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.41 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.40 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.39 lib/appsignal/integrations/resque.rb