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