Skip to content

Commit e144d62

Browse files
authored
Merge pull request #292 from prometheus/sinjo-prepare-4-2-1
Prepare release 4.2.1
2 parents 8dc02e4 + a9e8a30 commit e144d62

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@
44

55
_None outstanding_
66

7+
# 4.2.1 / 2023-08-04
8+
9+
_**Codename:** If a bug falls in the forest_
10+
11+
## Bug fixes
12+
13+
- [#291](https://github.com/prometheus/client_ruby/pull/291) Handle `/` in job name in
14+
`Prometheus::Client::Push`:
15+
Previously, if you included a `/` in your job name when using the Pushgateway client,
16+
you'd get a `400` error back as we didn't encode it properly. We now base64 encode it
17+
per the Pushgateway spec.
18+
19+
It's possible that nobody has hit this bug (`/` is fairly unlikely to appear in a job
20+
name) or that the error message (a `400` from Pushgateway with a complaint about an
21+
odd number of path components) didn't make it look like a bug in the Ruby client.
22+
Either way, this hopefully brings us fully in line with the spec!
23+
724
# 4.2.0 / 2023-07-25
825

926
_**Codename:** Funny number_

lib/prometheus/client/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module Prometheus
44
module Client
5-
VERSION = '4.2.0'
5+
VERSION = '4.2.1'
66
end
77
end

0 commit comments

Comments
 (0)