prometheus-client-mmap 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bf5a74fabdf7eb344213edc641c57dab7c97bcaad23f5ba45883837f01c9d27
4
- data.tar.gz: 9c86ca31dd3e32812a8ce97c13d1f3674f59169b50f0f46b762bf295b8ed33c0
3
+ metadata.gz: 4a5499ad848cb63f9d28ec70e0c8e625362e3b0d88c39ec99bfb1f8063977225
4
+ data.tar.gz: 6eb5a5ac105cd8755dbd150e71d8438b29afd91528ecbc8687cb4d2c3f4fdc3d
5
5
  SHA512:
6
- metadata.gz: e3f14c13416a92d5dc621f1d10ad3a5477dd7ee8169613bbf68b5281490c6f8d44af6ac8964c25aaa5847f938196936e0008d655a5bfbad2503295961a05b41a
7
- data.tar.gz: f119065ea9ac2bef25cdc1ae92ba784cf0486c32639b47874db815fde359166900ce67adf35d7e003a66d0993fe913afbbfc6fa1f0b7abed48a60a346d5ea52e
6
+ metadata.gz: 8937e83ed07d65c8b77128b12fb9df2e01950381b1f49bfacda43de81d1a087dfa97d646bac096002a4fcd151ecc6080454f1e6d8dd49b5b425b4ab49a0e908c
7
+ data.tar.gz: 7d63e7dc4965d3cf91efec8abe594c833483f4d2d54869916ba44a8a1b04419ff6eecb453d98f559fd15284c49d0a13d202ca86d2cf1b916933c505e417fe9b8
@@ -129,14 +129,10 @@ module Prometheus
129
129
 
130
130
 
131
131
  def rebuild_key
132
- labelnames = []
133
- labelvalues = []
134
- @labels.each do |k, v|
135
- labelnames << k
136
- labelvalues << v
137
- end
132
+ keys = @labels.keys.sort
133
+ values = @labels.values_at(*keys)
138
134
 
139
- [@metric_name, @name, labelnames, labelvalues].to_json
135
+ [@metric_name, @name, keys, values].to_json
140
136
  end
141
137
 
142
138
  def write_value(key, val)
@@ -1,5 +1,5 @@
1
1
  module Prometheus
2
2
  module Client
3
- VERSION = '0.14.0'.freeze
3
+ VERSION = '0.15.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prometheus-client-mmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schmidt
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-08-25 00:00:00.000000000 Z
12
+ date: 2021-08-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fuzzbert