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

Version Path
splitclient-rb-8.4.0-java lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.4.0 lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.4.0.pre.rc1-java lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.4.0.pre.rc1 lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.4.0.rc.1-java lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.4.0.rc.1 lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.3.2.pre.rc2-java lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.3.2.pre.rc2 lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.3.2.pre.rc1-java lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.3.2.pre.rc1 lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.3.1-java lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.3.1 lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.3.1.pre.rc1-java lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.3.1.pre.rc1 lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.3.0-java lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.3.0 lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.3.0.pre.rc3-java lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.3.0.pre.rc3 lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.3.0.pre.rc2-java lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb
splitclient-rb-8.3.0.pre.rc2 lib/splitclient-rb/telemetry/memory/memory_evaluation_consumer.rb