prometheus-client 4.2.1 → 4.2.2

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: d4744fe6d558634c6fa56a7280a4e7f19f4e7007236f61fbf70da25ffba2b2f9
4
- data.tar.gz: 4b7e9ba6a1f32a30105317233e86dfbb67c292a554fa1f1b75e93b9aae3004de
3
+ metadata.gz: 2b36b20b2f61361da60e32c5d29776dcfb5137ab36a1fe08efbaa40ab0bee9ae
4
+ data.tar.gz: 84dcf52b5225ccf0d1aa06038bb93158002d418251d6612f00178415be3285c9
5
5
  SHA512:
6
- metadata.gz: 48e636ba5c9b9b192f0342988ee971fdebf6e6ed88e2054468cae841aff6b984bd6210ee9a0e2d5a84a9ae36f0e5d65ec668601f21af0c980eb4d3e27f861b10
7
- data.tar.gz: 6ba530af29c963aa1c1088f0a2319da994c11cc032d2fc799ca24ffc331bf372c2bc213dff2eb29651e01f46d17f9be85d503ee367df6a13888f72c204830c5a
6
+ metadata.gz: 74472339fc3183ac0ea27c2d3c95e716452f51cdea3f0c0e4055f2bf34c23da0e507c8b638b0fe489b425b4d667e1046349df5d4eef8cc29c74c6f31738f313b
7
+ data.tar.gz: 6e71e65c6b3f9f04124dce86fb7fd8b08c5bdfb0f02d71f89815ea88ef7e9880f2c2b0ec60c2b2c74cb06056befbfdde42534f33a688d78252b880ea44a00ee5
@@ -87,6 +87,8 @@ module Prometheus
87
87
  end
88
88
 
89
89
  def build_path(job, grouping_key)
90
+ job = job.to_s
91
+
90
92
  # Job can't be empty, but it can contain `/`, so we need to base64
91
93
  # encode it in that case
92
94
  if job.include?('/')
@@ -97,6 +99,8 @@ module Prometheus
97
99
  end
98
100
 
99
101
  grouping_key.each do |label, value|
102
+ value = value.to_s
103
+
100
104
  if value.include?('/')
101
105
  encoded_value = Base64.urlsafe_encode64(value)
102
106
  path += "/#{label}@base64/#{encoded_value}"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Prometheus
4
4
  module Client
5
- VERSION = '4.2.1'
5
+ VERSION = '4.2.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prometheus-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1
4
+ version: 4.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Kochie
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-08-04 00:00:00.000000000 Z
13
+ date: 2023-10-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: benchmark-ips