class Vitals::Integrations::Notifications::ActiveJob
see github.com/rails/rails/blob/master/activejob/lib/active_job/logging.rb#L23
Public Class Methods
event_name()
click to toggle source
# File lib/vitals/integrations/notifications/active_job.rb, line 6 def self.event_name 'perform.active_job' end
Private Class Methods
handle(name, started, finished, unique_id, payload)
click to toggle source
# File lib/vitals/integrations/notifications/active_job.rb, line 11 def self.handle(name, started, finished, unique_id, payload) job = payload[:job] name = job.class.name.sub(/Job$/, '').sub(/Worker$/,'').downcase Vitals.timing("jobs.#{job.queue_name}.#{name}", duration(started, finished)) end