lib/dispatch-rider/integrations/appsignal.rb in dispatch-rider-2.1.0 vs lib/dispatch-rider/integrations/appsignal.rb in dispatch-rider-2.2.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + if defined? Appsignal ::Appsignal.logger.info('Loading Dispatch Rider integration') module DispatchRider module Integrations @@ -11,10 +13,10 @@ 'perform_job.dispatch-rider', class: message.subject, method: 'handle', attempts: message.receive_count, queue: message.queue_name, - queue_time: (Time.now.to_f - message.sent_at.to_f) * 1000, + queue_time: (Time.now.to_f - message.sent_at.to_f) * 1000 ) do job.call end ::Appsignal.stop