Sha256: 828a7a852258a6ff128971382c3060188bf1a39bfd512b58e31d89a935166a15

Contents?: true

Size: 554 Bytes

Versions: 38

Compression:

Stored size: 554 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_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

38 entries across 38 versions & 1 rubygems

Version Path
appsignal-0.12.beta.38 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.37 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.36 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.35 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.34 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.33 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.32 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.31 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.30 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.29 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.28 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.27 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.26 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.25 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.24 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.23 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.22 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.21 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.20 lib/appsignal/integrations/resque.rb
appsignal-0.12.beta.19 lib/appsignal/integrations/resque.rb