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.4.0-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.4.0 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.4.0.pre.rc1-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.4.0.pre.rc1 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.4.0.rc.1-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.4.0.rc.1 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.3.2.pre.rc2-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.3.2.pre.rc2 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.3.2.pre.rc1-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.3.2.pre.rc1 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.3.1-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.3.1 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.3.1.pre.rc1-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.3.1.pre.rc1 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.3.0-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.3.0 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.3.0.pre.rc3-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.3.0.pre.rc3 lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.3.0.pre.rc2-java lib/splitclient-rb/telemetry/init_producer.rb
splitclient-rb-8.3.0.pre.rc2 lib/splitclient-rb/telemetry/init_producer.rb