lib/new_relic/agent/instrumentation/bunny/instrumentation.rb in newrelic_rpm-7.2.0 vs lib/new_relic/agent/instrumentation/bunny/instrumentation.rb in newrelic_rpm-8.0.0
- old
+ new
@@ -63,10 +63,10 @@
include Bunny
def pop_with_tracing
bunny_error, delivery_info, message_properties, _payload = nil, nil, nil, nil
begin
- t0 = Time.now
+ t0 = Process.clock_gettime(Process::CLOCK_REALTIME)
msg = yield
delivery_info, message_properties, _payload = msg
rescue StandardError => error
bunny_error = error
end