Module: Appsignal::Integrations::ResqueActiveJobPlugin
- Includes:
- Hooks::Helpers
- Defined in:
- lib/appsignal/integrations/resque_active_job.rb
Class Method Summary collapse
Methods included from Hooks::Helpers
#extract_value, #format_args, #string_or_inspect, #truncate
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/appsignal/integrations/resque_active_job.rb', line 6 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 |