|
13 | 13 | from splitio.client.listener import ImpressionListenerWrapper, ImpressionListenerWrapperAsync
|
14 | 14 | from splitio.engine.impressions.impressions import Manager as ImpressionsManager
|
15 | 15 | from splitio.engine.impressions import set_classes, set_classes_async
|
16 |
| -from splitio.engine.impressions.strategies import StrategyDebugMode |
| 16 | +from splitio.engine.impressions.strategies import StrategyDebugMode, StrategyNoneMode |
17 | 17 | from splitio.engine.telemetry import TelemetryStorageProducer, TelemetryStorageConsumer, \
|
18 | 18 | TelemetryStorageProducerAsync, TelemetryStorageConsumerAsync
|
19 | 19 | from splitio.engine.impressions.manager import Counter as ImpressionsCounter
|
@@ -553,10 +553,10 @@ def _build_in_memory_factory(api_key, cfg, sdk_url=None, events_url=None, # pyl
|
553 | 553 | unique_keys_tracker = UniqueKeysTracker(_UNIQUE_KEYS_CACHE_SIZE)
|
554 | 554 | unique_keys_synchronizer, clear_filter_sync, unique_keys_task, \
|
555 | 555 | clear_filter_task, impressions_count_sync, impressions_count_task, \
|
556 |
| - imp_strategy = set_classes('MEMORY', cfg['impressionsMode'], apis, imp_counter, unique_keys_tracker) |
| 556 | + imp_strategy, none_strategy = set_classes('MEMORY', cfg['impressionsMode'], apis, imp_counter, unique_keys_tracker) |
557 | 557 |
|
558 | 558 | imp_manager = ImpressionsManager(
|
559 |
| - imp_strategy, telemetry_runtime_producer) |
| 559 | + imp_strategy, none_strategy, telemetry_runtime_producer) |
560 | 560 |
|
561 | 561 | synchronizers = SplitSynchronizers(
|
562 | 562 | SplitSynchronizer(apis['splits'], storages['splits']),
|
@@ -681,10 +681,10 @@ async def _build_in_memory_factory_async(api_key, cfg, sdk_url=None, events_url=
|
681 | 681 | unique_keys_tracker = UniqueKeysTrackerAsync(_UNIQUE_KEYS_CACHE_SIZE)
|
682 | 682 | unique_keys_synchronizer, clear_filter_sync, unique_keys_task, \
|
683 | 683 | clear_filter_task, impressions_count_sync, impressions_count_task, \
|
684 |
| - imp_strategy = set_classes_async('MEMORY', cfg['impressionsMode'], apis, imp_counter, unique_keys_tracker) |
| 684 | + imp_strategy, none_strategy = set_classes_async('MEMORY', cfg['impressionsMode'], apis, imp_counter, unique_keys_tracker) |
685 | 685 |
|
686 | 686 | imp_manager = ImpressionsManager(
|
687 |
| - imp_strategy, telemetry_runtime_producer) |
| 687 | + imp_strategy, none_strategy, telemetry_runtime_producer) |
688 | 688 |
|
689 | 689 | synchronizers = SplitSynchronizers(
|
690 | 690 | SplitSynchronizerAsync(apis['splits'], storages['splits']),
|
@@ -775,10 +775,10 @@ def _build_redis_factory(api_key, cfg):
|
775 | 775 | unique_keys_tracker = UniqueKeysTracker(_UNIQUE_KEYS_CACHE_SIZE)
|
776 | 776 | unique_keys_synchronizer, clear_filter_sync, unique_keys_task, \
|
777 | 777 | clear_filter_task, impressions_count_sync, impressions_count_task, \
|
778 |
| - imp_strategy = set_classes('REDIS', cfg['impressionsMode'], redis_adapter, imp_counter, unique_keys_tracker) |
| 778 | + imp_strategy, none_strategy = set_classes('REDIS', cfg['impressionsMode'], redis_adapter, imp_counter, unique_keys_tracker) |
779 | 779 |
|
780 | 780 | imp_manager = ImpressionsManager(
|
781 |
| - imp_strategy, |
| 781 | + imp_strategy, none_strategy, |
782 | 782 | telemetry_runtime_producer)
|
783 | 783 |
|
784 | 784 | synchronizers = SplitSynchronizers(None, None, None, None,
|
@@ -858,10 +858,10 @@ async def _build_redis_factory_async(api_key, cfg):
|
858 | 858 | unique_keys_tracker = UniqueKeysTrackerAsync(_UNIQUE_KEYS_CACHE_SIZE)
|
859 | 859 | unique_keys_synchronizer, clear_filter_sync, unique_keys_task, \
|
860 | 860 | clear_filter_task, impressions_count_sync, impressions_count_task, \
|
861 |
| - imp_strategy = set_classes_async('REDIS', cfg['impressionsMode'], redis_adapter, imp_counter, unique_keys_tracker) |
| 861 | + imp_strategy, none_strategy = set_classes_async('REDIS', cfg['impressionsMode'], redis_adapter, imp_counter, unique_keys_tracker) |
862 | 862 |
|
863 | 863 | imp_manager = ImpressionsManager(
|
864 |
| - imp_strategy, |
| 864 | + imp_strategy, none_strategy, |
865 | 865 | telemetry_runtime_producer)
|
866 | 866 |
|
867 | 867 | synchronizers = SplitSynchronizers(None, None, None, None,
|
@@ -936,10 +936,10 @@ def _build_pluggable_factory(api_key, cfg):
|
936 | 936 | unique_keys_tracker = UniqueKeysTracker(_UNIQUE_KEYS_CACHE_SIZE)
|
937 | 937 | unique_keys_synchronizer, clear_filter_sync, unique_keys_task, \
|
938 | 938 | clear_filter_task, impressions_count_sync, impressions_count_task, \
|
939 |
| - imp_strategy = set_classes('PLUGGABLE', cfg['impressionsMode'], pluggable_adapter, imp_counter, unique_keys_tracker, storage_prefix) |
| 939 | + imp_strategy, none_strategy = set_classes('PLUGGABLE', cfg['impressionsMode'], pluggable_adapter, imp_counter, unique_keys_tracker, storage_prefix) |
940 | 940 |
|
941 | 941 | imp_manager = ImpressionsManager(
|
942 |
| - imp_strategy, |
| 942 | + imp_strategy, none_strategy, |
943 | 943 | telemetry_runtime_producer)
|
944 | 944 |
|
945 | 945 | synchronizers = SplitSynchronizers(None, None, None, None,
|
@@ -1017,10 +1017,10 @@ async def _build_pluggable_factory_async(api_key, cfg):
|
1017 | 1017 | unique_keys_tracker = UniqueKeysTrackerAsync(_UNIQUE_KEYS_CACHE_SIZE)
|
1018 | 1018 | unique_keys_synchronizer, clear_filter_sync, unique_keys_task, \
|
1019 | 1019 | clear_filter_task, impressions_count_sync, impressions_count_task, \
|
1020 |
| - imp_strategy = set_classes_async('PLUGGABLE', cfg['impressionsMode'], pluggable_adapter, imp_counter, unique_keys_tracker, storage_prefix) |
| 1020 | + imp_strategy, none_strategy = set_classes_async('PLUGGABLE', cfg['impressionsMode'], pluggable_adapter, imp_counter, unique_keys_tracker, storage_prefix) |
1021 | 1021 |
|
1022 | 1022 | imp_manager = ImpressionsManager(
|
1023 |
| - imp_strategy, |
| 1023 | + imp_strategy, none_strategy, |
1024 | 1024 | telemetry_runtime_producer)
|
1025 | 1025 |
|
1026 | 1026 | synchronizers = SplitSynchronizers(None, None, None, None,
|
@@ -1123,7 +1123,7 @@ def _build_localhost_factory(cfg):
|
1123 | 1123 | manager.start()
|
1124 | 1124 |
|
1125 | 1125 | recorder = StandardRecorder(
|
1126 |
| - ImpressionsManager(StrategyDebugMode(), telemetry_runtime_producer), |
| 1126 | + ImpressionsManager(StrategyDebugMode(), StrategyNoneMode(), telemetry_runtime_producer), |
1127 | 1127 | storages['events'],
|
1128 | 1128 | storages['impressions'],
|
1129 | 1129 | telemetry_evaluation_producer,
|
@@ -1192,7 +1192,7 @@ async def _build_localhost_factory_async(cfg):
|
1192 | 1192 | await manager.start()
|
1193 | 1193 |
|
1194 | 1194 | recorder = StandardRecorderAsync(
|
1195 |
| - ImpressionsManager(StrategyDebugMode(), telemetry_runtime_producer), |
| 1195 | + ImpressionsManager(StrategyDebugMode(), StrategyNoneMode(), telemetry_runtime_producer), |
1196 | 1196 | storages['events'],
|
1197 | 1197 | storages['impressions'],
|
1198 | 1198 | telemetry_evaluation_producer,
|
|
0 commit comments