Sha256: 86a94811f05605439aa2b1ef8af20eefa91f31391a59280cb8a9ae2f8c8bc97f
Contents?: true
Size: 714 Bytes
Versions: 56
Compression:
Stored size: 714 Bytes
Contents
# frozen_string_literal: true module SplitIoClient module Telemetry class MemoryEvaluationConsumer def initialize(config) @config = config @adapter = config.telemetry_adapter end def pop_latencies to_return = @adapter.latencies.each_with_object({}) do |latency, memo| memo[latency[:method]] = latency[:latencies] end @adapter.init_latencies to_return end def pop_exceptions to_return = @adapter.exceptions.each_with_object({}) do |exception, memo| memo[exception[:method]] = exception[:exceptions].value end @adapter.init_exceptions to_return end end end end
Version data entries
56 entries across 56 versions & 1 rubygems