Skip to content

Commit 06f209b

Browse files
committed
Update client_golang
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
1 parent b7bd4f7 commit 06f209b

4 files changed

Lines changed: 19 additions & 17 deletions

File tree

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ require (
2525
github.com/davecgh/go-spew v1.1.1 // indirect
2626
github.com/jpillora/backoff v1.0.0 // indirect
2727
github.com/pmezard/go-difflib v1.0.0 // indirect
28-
github.com/prometheus/client_golang v1.20.4 // indirect
29-
github.com/prometheus/procfs v0.15.1 // indirect
28+
github.com/prometheus/client_golang v1.22.1-0.20250704063842-885110f4db4f // indirect
29+
github.com/prometheus/procfs v0.16.1 // indirect
3030
github.com/rogpeppe/go-internal v1.10.0 // indirect
3131
github.com/xhit/go-str2duration/v2 v2.1.0 // indirect
3232
golang.org/x/sys v0.33.0 // indirect

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2E
1515
github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
1616
github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U=
1717
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
18-
github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2qeMA=
19-
github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw=
2018
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
2119
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
2220
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
@@ -29,12 +27,12 @@ github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+
2927
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
3028
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
3129
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
32-
github.com/prometheus/client_golang v1.20.4 h1:Tgh3Yr67PaOv/uTqloMsCEdeuFTatm5zIq5+qNN23vI=
33-
github.com/prometheus/client_golang v1.20.4/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE=
30+
github.com/prometheus/client_golang v1.22.1-0.20250704063842-885110f4db4f h1:Ex7TvVRYjh+wNm1RRqbUyFrR5FYCdfApxqLCGlisaSs=
31+
github.com/prometheus/client_golang v1.22.1-0.20250704063842-885110f4db4f/go.mod h1:CR59Lx0qSGs4e5Zxr3VgiN2yuxy90eRO/0sO/iCjUH0=
3432
github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk=
3533
github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE=
36-
github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc=
37-
github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk=
34+
github.com/prometheus/procfs v0.16.1 h1:hZ15bTNuirocR6u0JZ6BAHHmwS1p8B4P6MRqxtzMyRg=
35+
github.com/prometheus/procfs v0.16.1/go.mod h1:teAbpZRB1iIAJYREa1LsoWUXykVXA1KlTmWl8x/U+Is=
3836
github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
3937
github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog=
4038
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
@@ -43,6 +41,8 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOf
4341
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
4442
github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc=
4543
github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU=
44+
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
45+
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
4646
golang.org/x/net v0.41.0 h1:vBTly1HeNPEn3wtREYfy4GZ/NECgw2Cnl+nK6Nz3uvw=
4747
golang.org/x/net v0.41.0/go.mod h1:B/K4NNqkfmg07DQYrbwvSluqCJOOXwUjeb/5lOisjbA=
4848
golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI=

model/labels.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func (ln LabelName) IsValid(scheme ValidationScheme) bool {
115115
case UTF8Validation:
116116
return utf8.ValidString(string(ln))
117117
default:
118-
panic(fmt.Sprintf("Invalid name validation scheme requested: %s", scheme))
118+
panic(fmt.Sprintf("Invalid name validation scheme requested: %s", scheme.String()))
119119
}
120120
}
121121

model/metric.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ import (
2727
"gopkg.in/yaml.v2"
2828
)
2929

30-
// NameEscapingScheme defines the default way that names will be escaped when
31-
// presented to systems that do not support UTF-8 names. If the Content-Type
32-
// "escaping" term is specified, that will override this value.
33-
// NameEscapingScheme should not be set to the NoEscaping value. That string
34-
// is used in content negotiation to indicate that a system supports UTF-8 and
35-
// has that feature enabled.
36-
var NameEscapingScheme = UnderscoreEscaping
30+
var (
31+
// NameEscapingScheme defines the default way that names will be escaped when
32+
// presented to systems that do not support UTF-8 names. If the Content-Type
33+
// "escaping" term is specified, that will override this value.
34+
// NameEscapingScheme should not be set to the NoEscaping value. That string
35+
// is used in content negotiation to indicate that a system supports UTF-8 and
36+
// has that feature enabled.
37+
NameEscapingScheme = UnderscoreEscaping
38+
)
3739

3840
// ValidationScheme is a Go enum for determining how metric and label names will
3941
// be validated by this library.
@@ -216,7 +218,7 @@ func IsValidMetricName(n LabelValue, scheme ValidationScheme) bool {
216218
}
217219
return utf8.ValidString(string(n))
218220
default:
219-
panic(fmt.Sprintf("Invalid name validation scheme requested: %s", scheme))
221+
panic(fmt.Sprintf("Invalid name validation scheme requested: %s", scheme.String()))
220222
}
221223
}
222224

0 commit comments

Comments
 (0)