lib/flipper/cloud/telemetry/instrumenter.rb in flipper-1.2.2 vs lib/flipper/cloud/telemetry/instrumenter.rb in flipper-1.3.0.pre

- old
+ new

@@ -1,25 +1,21 @@ require "delegate" module Flipper module Cloud class Telemetry - class Instrumenter < SimpleDelegator + class Instrumenter + attr_reader :instrumenter + def initialize(cloud_configuration, instrumenter) - super instrumenter + @instrumenter = instrumenter @cloud_configuration = cloud_configuration end def instrument(name, payload = {}, &block) return_value = instrumenter.instrument(name, payload, &block) @cloud_configuration.telemetry.record(name, payload) return_value - end - - private - - def instrumenter - __getobj__ end end end end end