lib/racecar/instrumenter.rb in racecar-2.0.0 vs lib/racecar/instrumenter.rb in racecar-2.1.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module Racecar ## # Common API for instrumentation to standardize # namespace and default payload # @@ -9,9 +11,11 @@ def initialize(default_payload = {}) @default_payload = default_payload @backend = if defined?(ActiveSupport::Notifications) + # ActiveSupport needs `concurrent-ruby` but doesn't `require` it. + require 'concurrent/utility/monotonic_time' ActiveSupport::Notifications else NullInstrumenter end end