Sha256: 5c9a085e4f287ce107a5fc7acddcded99a6322e71a8c6b612d835645e9cf7d0e

Contents?: true

Size: 583 Bytes

Versions: 136

Compression:

Stored size: 583 Bytes

Contents

# frozen_string_literal: true

module SplitIoClient
  module Telemetry
    class InitProducer
      extend Forwardable
      def_delegators :@init, :record_config, :record_non_ready_usages, :record_bur_timeout

      def initialize(config)
        @init = case config.telemetry_adapter.class.to_s
                when 'SplitIoClient::Cache::Adapters::RedisAdapter'
                  SplitIoClient::Telemetry::RedisInitProducer.new(config)
                else
                  SplitIoClient::Telemetry::MemoryInitProducer.new(config)
                end
      end
    end
  end
end

Version data entries

136 entries across 136 versions & 1 rubygems

Version Path
splitclient-rb-8.1.1.pre.rc2-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.1.1.pre.rc2 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.1.1.pre.rc1-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.1.1.pre.rc1 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.1.0-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.1.0 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.1.0.pre.rc1-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.1.0.pre.rc1 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.0.1-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.0.1 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.0.1.pre.rc1-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.0.1.pre.rc1 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.0.0-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.0.0 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.0.0.pre.rc2-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.0.0.pre.rc2 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.0.0.pre.rc1-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.0.0.pre.rc1 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-7.3.5.pre.rc5-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-7.3.5.pre.rc5 lib/splitclient-rb/telemetry/init_producer.rb