lib/nanoc/base/services/instrumentor.rb in nanoc-4.11.0 vs lib/nanoc/base/services/instrumentor.rb in nanoc-4.11.1

- old
+ new

@@ -1,15 +1,17 @@ # frozen_string_literal: true -module Nanoc::Int - # @api private - class Instrumentor - def self.call(key, *args) - stopwatch = DDMetrics::Stopwatch.new - stopwatch.start - yield - ensure - stopwatch.stop - Nanoc::Int::NotificationCenter.post(key, stopwatch.duration, *args) +module Nanoc + module Int + # @api private + class Instrumentor + def self.call(key, *args) + stopwatch = DDMetrics::Stopwatch.new + stopwatch.start + yield + ensure + stopwatch.stop + Nanoc::Core::NotificationCenter.post(key, stopwatch.duration, *args) + end end end end