Sha256: 7689ad753687c8c02aa01643588e3fa209689be10d7eb17bb5c474ed8d2d8197
Contents?: true
Size: 591 Bytes
Versions: 6
Compression:
Stored size: 591 Bytes
Contents
require "delegate" module Flipper module Cloud class Telemetry class Instrumenter < SimpleDelegator def initialize(cloud_configuration, instrumenter) super 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
Version data entries
6 entries across 6 versions & 1 rubygems