Debian Codegraph @

debian/patches/0004-Fix-collector-metrics-test-for-Go-1.24.patch

raw
1 From: Daniel Swarbrick <[email protected]>
2 Date: Sat, 16 Aug 2025 21:21:07 +0200
3 Subject: Fix collector metrics test for Go 1.24
4
5 Forwarded: not-needed
6 ---
7 prometheus/collectors/go_collector_go124_test.go | 2 ++
8 prometheus/go_collector_metrics_go124_test.go | 3 ++-
9 2 files changed, 4 insertions(+), 1 deletion(-)
10
11 diff --git a/prometheus/collectors/go_collector_go124_test.go b/prometheus/collectors/go_collector_go124_test.go
12 index 3933de4..358b6a8 100644
13 --- a/prometheus/collectors/go_collector_go124_test.go
14 +++ b/prometheus/collectors/go_collector_go124_test.go
15 @@ -62,6 +62,7 @@ func withAllMetrics() []string {
16 "go_godebug_non_default_behavior_gotypesalias_events_total",
17 "go_godebug_non_default_behavior_http2client_events_total",
18 "go_godebug_non_default_behavior_http2server_events_total",
19 + "go_godebug_non_default_behavior_httpcookiemaxnum_events_total",
20 "go_godebug_non_default_behavior_httplaxcontentlength_events_total",
21 "go_godebug_non_default_behavior_httpmuxgo121_events_total",
22 "go_godebug_non_default_behavior_httpservecontentkeepheaders_events_total",
23 @@ -183,6 +184,7 @@ func withDebugMetrics() []string {
24 "go_godebug_non_default_behavior_gotypesalias_events_total",
25 "go_godebug_non_default_behavior_http2client_events_total",
26 "go_godebug_non_default_behavior_http2server_events_total",
27 + "go_godebug_non_default_behavior_httpcookiemaxnum_events_total",
28 "go_godebug_non_default_behavior_httplaxcontentlength_events_total",
29 "go_godebug_non_default_behavior_httpmuxgo121_events_total",
30 "go_godebug_non_default_behavior_httpservecontentkeepheaders_events_total",
31 diff --git a/prometheus/go_collector_metrics_go124_test.go b/prometheus/go_collector_metrics_go124_test.go
32 index 6c5d124..75c55aa 100644
33 --- a/prometheus/go_collector_metrics_go124_test.go
34 +++ b/prometheus/go_collector_metrics_go124_test.go
35 @@ -52,6 +52,7 @@ var (
36 "/godebug/non-default-behavior/gotypesalias:events": "go_godebug_non_default_behavior_gotypesalias_events_total",
37 "/godebug/non-default-behavior/http2client:events": "go_godebug_non_default_behavior_http2client_events_total",
38 "/godebug/non-default-behavior/http2server:events": "go_godebug_non_default_behavior_http2server_events_total",
39 + "/godebug/non-default-behavior/httpcookiemaxnum:events": "go_godebug_non_default_behavior_httpcookiemaxnum_events_total",
40 "/godebug/non-default-behavior/httplaxcontentlength:events": "go_godebug_non_default_behavior_httplaxcontentlength_events_total",
41 "/godebug/non-default-behavior/httpmuxgo121:events": "go_godebug_non_default_behavior_httpmuxgo121_events_total",
42 "/godebug/non-default-behavior/httpservecontentkeepheaders:events": "go_godebug_non_default_behavior_httpservecontentkeepheaders_events_total",
43 @@ -109,4 +110,4 @@ var (
44 }
45 )
46
47 -const expectedRuntimeMetricsCardinality = 172
48 +const expectedRuntimeMetricsCardinality = 173