splitclient-rb 1.0.2.wip → 1.0.2.wip2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9026140c8f832a3b0c0c0e54e60afa818370a5fb
|
4
|
+
data.tar.gz: a6d1ec36e7b7f3700731651f2bfd623860ac42a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a72fc9d0a3936bd20e7d7bcde2c10465cde57abc40fdbae090bfd5748c38840f13bfbbca6f7a0752ecb0d70e763a60c2f7a25461302df753fb35896e4a9de17f
|
7
|
+
data.tar.gz: f314f39d42ab4755bc8bd57cd54cca7a6193a036a35ca5ae534950462bdf5a7514837d8865f28774701e9c7be1c3b521c02803e9bfb643f97daa5152ca6c79aa
|
@@ -363,7 +363,6 @@ module SplitIoClient
|
|
363
363
|
#
|
364
364
|
# @return [void]
|
365
365
|
def post_metrics
|
366
|
-
clear = true
|
367
366
|
if @metrics.latencies.empty?
|
368
367
|
@config.logger.info('No latencies to report.')
|
369
368
|
else
|
@@ -373,16 +372,14 @@ module SplitIoClient
|
|
373
372
|
res = post_api('/metrics/time', metrics_time)
|
374
373
|
if res.status / 100 != 2
|
375
374
|
@config.logger.error("Unexpected status code while posting time metrics: #{res.status}")
|
376
|
-
clear = false
|
377
375
|
else
|
378
376
|
@config.logger.info("Metric time reported.")
|
379
377
|
@config.logger.debug("#{metrics_time}") if @config.debug_enabled
|
380
378
|
end
|
381
379
|
end
|
382
380
|
end
|
383
|
-
@metrics.latencies.clear
|
381
|
+
@metrics.latencies.clear
|
384
382
|
|
385
|
-
clear = true
|
386
383
|
if @metrics.counts.empty?
|
387
384
|
@config.logger.info('No counts to report.')
|
388
385
|
else
|
@@ -392,16 +389,14 @@ module SplitIoClient
|
|
392
389
|
res = post_api('/metrics/counter', metrics_count)
|
393
390
|
if res.status / 100 != 2
|
394
391
|
@config.logger.error("Unexpected status code while posting count metrics: #{res.status}")
|
395
|
-
clear = false
|
396
392
|
else
|
397
393
|
@config.logger.info("Metric counts reported.")
|
398
394
|
@config.logger.debug("#{metrics_count}") if @config.debug_enabled
|
399
395
|
end
|
400
396
|
end
|
401
397
|
end
|
402
|
-
@metrics.counts.clear
|
398
|
+
@metrics.counts.clear
|
403
399
|
|
404
|
-
clear = true
|
405
400
|
if @metrics.gauges.empty?
|
406
401
|
@config.logger.info('No gauges to report.')
|
407
402
|
else
|
@@ -411,15 +406,13 @@ module SplitIoClient
|
|
411
406
|
res = post_api('/metrics/gauge', metrics_gauge)
|
412
407
|
if res.status / 100 != 2
|
413
408
|
@config.logger.error("Unexpected status code while posting gauge metrics: #{res.status}")
|
414
|
-
clear = false
|
415
409
|
else
|
416
410
|
@config.logger.info("Metric gauge reported.")
|
417
411
|
@config.logger.debug("#{metrics_gauge}") if @config.debug_enabled
|
418
412
|
end
|
419
413
|
end
|
420
414
|
end
|
421
|
-
@metrics.gauges.clear
|
422
|
-
|
415
|
+
@metrics.gauges.clear
|
423
416
|
end
|
424
417
|
|
425
418
|
private
|
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: 1.0.2.
|
4
|
+
version: 1.0.2.wip2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Split Software
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|