splitclient-rb 8.1.1.pre.rc1-java → 8.1.1.pre.rc2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/splitclient-rb/cache/adapters/redis_adapter.rb +1 -1
- data/lib/splitclient-rb/cache/senders/impressions_adapter/redis_sender.rb +5 -4
- data/lib/splitclient-rb/split_config.rb +1 -1
- data/lib/splitclient-rb/telemetry/domain/structs.rb +4 -3
- data/lib/splitclient-rb/telemetry/memory/memory_synchronizer.rb +2 -1
- data/lib/splitclient-rb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba041f1df9e37f3bc6a4f39c870908012315bb17
|
4
|
+
data.tar.gz: 35ee8aedaf5d662403122cfe3912b69fc0a9157b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd3c8e1ff1014e7bfafeffc098b530cfebf6c0055a79dfb8fa24412d2e26fd42da3f1685e74e9aed58bfb75e539df8b95d586666cfbb202308b757c7aecbf942
|
7
|
+
data.tar.gz: cbc94fac3168b86f885fb745ccf1e0a46e76f559d1cb5b7713dd7377b8269b0fda8f5cb405ff46f2d6e505ab9e616ee390e7fd959e047c2911e1ba8c76167ed3
|
@@ -14,12 +14,13 @@ module SplitIoClient
|
|
14
14
|
def record_uniques_key(uniques)
|
15
15
|
return if uniques.nil? || uniques == {}
|
16
16
|
|
17
|
-
size =
|
18
|
-
|
19
|
-
|
17
|
+
size = @adapter.redis.pipelined do |pipeline|
|
18
|
+
uniques.each do |key, value|
|
19
|
+
pipeline.rpush(unique_keys_key, { f: key, ks: value.to_a }.to_json)
|
20
|
+
end
|
20
21
|
end
|
21
22
|
|
22
|
-
@adapter.expire(unique_keys_key, EXPIRE_SECONDS) if uniques.length == size
|
23
|
+
@adapter.expire(unique_keys_key, EXPIRE_SECONDS) if uniques.length == size.last
|
23
24
|
rescue StandardError => e
|
24
25
|
@config.log_found_exception(__method__.to_s, e)
|
25
26
|
end
|
@@ -117,7 +117,7 @@ module SplitIoClient
|
|
117
117
|
|
118
118
|
@counter_refresh_rate = SplitConfig.default_counter_refresh_rate(@cache_adapter)
|
119
119
|
|
120
|
-
@sdk_start_time = Time.now
|
120
|
+
@sdk_start_time = Time.now.to_f
|
121
121
|
|
122
122
|
@on_demand_fetch_retry_delay_seconds = SplitConfig.default_on_demand_fetch_retry_delay_seconds
|
123
123
|
@on_demand_fetch_max_retries = SplitConfig.default_on_demand_fetch_max_retries
|
@@ -13,9 +13,10 @@ module SplitIoClient
|
|
13
13
|
# s: sdkUrl, e: eventsUrl, a: authUrl, st: streamUrl, t: telemetryUrl
|
14
14
|
UrlOverrides = Struct.new(:s, :e, :a, :st, :t)
|
15
15
|
|
16
|
-
# om: operationMode,
|
17
|
-
#
|
18
|
-
#
|
16
|
+
# om: operationMode, st: storage, af: activeFactories, rf: redundantActiveFactories, t: tags, se: streamingEnabled,
|
17
|
+
# rr: refreshRate, uo: urlOverrides, iq: impressionsQueueSize, eq: eventsQueueSize, im: impressionsMode,
|
18
|
+
# il: impressionListenerEnabled, hp: httpProxyDetected, tr: timeUntilSdkReady, bt: burTimeouts,
|
19
|
+
# nr: sdkNotReadyUsage, i: integrations
|
19
20
|
ConfigInit = Struct.new(:om, :st, :af, :rf, :t, :se, :rr, :uo, :iq, :eq, :im, :il, :hp, :tr, :bt, :nr, :i)
|
20
21
|
|
21
22
|
# ls: lastSynchronization, ml: clientMethodLatencies, me: clientMethodExceptions, he: httpErros, hl: httpLatencies,
|
@@ -56,6 +56,7 @@ module SplitIoClient
|
|
56
56
|
|
57
57
|
active_factories ||= SplitIoClient.split_factory_registry.active_factories
|
58
58
|
redundant_active_factories ||= SplitIoClient.split_factory_registry.redundant_active_factories
|
59
|
+
time_until_ready ||= ((Time.now.to_f - @config.sdk_start_time) * 1000.0).to_i
|
59
60
|
|
60
61
|
init_config = ConfigInit.new(mode,
|
61
62
|
'memory',
|
@@ -70,7 +71,7 @@ module SplitIoClient
|
|
70
71
|
impressions_mode,
|
71
72
|
!@config.impression_listener.nil?,
|
72
73
|
http_proxy_detected?,
|
73
|
-
time_until_ready
|
74
|
+
time_until_ready,
|
74
75
|
@telemetry_init_consumer.bur_timeouts,
|
75
76
|
@telemetry_init_consumer.non_ready_usages)
|
76
77
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: splitclient-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.1.1.pre.
|
4
|
+
version: 8.1.1.pre.rc2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Split Software
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|