lib/nanoc/base/services/instrumentor.rb in nanoc-4.8.19 vs lib/nanoc/base/services/instrumentor.rb in nanoc-4.9.0

- old
+ new

@@ -2,10 +2,10 @@ module Nanoc::Int # @api private class Instrumentor def self.call(key, *args) - stopwatch = DDTelemetry::Stopwatch.new + stopwatch = DDMetrics::Stopwatch.new stopwatch.start yield ensure stopwatch.stop Nanoc::Int::NotificationCenter.post(key, stopwatch.duration, *args)