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