From: Daniel Swarbrick Date: Sat, 16 Aug 2025 21:21:07 +0200 Subject: Fix collector metrics test for Go 1.24 Forwarded: not-needed --- prometheus/collectors/go_collector_go124_test.go | 2 ++ prometheus/go_collector_metrics_go124_test.go | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/prometheus/collectors/go_collector_go124_test.go b/prometheus/collectors/go_collector_go124_test.go index 3933de4..358b6a8 100644 --- a/prometheus/collectors/go_collector_go124_test.go +++ b/prometheus/collectors/go_collector_go124_test.go @@ -62,6 +62,7 @@ func withAllMetrics() []string { "go_godebug_non_default_behavior_gotypesalias_events_total", "go_godebug_non_default_behavior_http2client_events_total", "go_godebug_non_default_behavior_http2server_events_total", + "go_godebug_non_default_behavior_httpcookiemaxnum_events_total", "go_godebug_non_default_behavior_httplaxcontentlength_events_total", "go_godebug_non_default_behavior_httpmuxgo121_events_total", "go_godebug_non_default_behavior_httpservecontentkeepheaders_events_total", @@ -183,6 +184,7 @@ func withDebugMetrics() []string { "go_godebug_non_default_behavior_gotypesalias_events_total", "go_godebug_non_default_behavior_http2client_events_total", "go_godebug_non_default_behavior_http2server_events_total", + "go_godebug_non_default_behavior_httpcookiemaxnum_events_total", "go_godebug_non_default_behavior_httplaxcontentlength_events_total", "go_godebug_non_default_behavior_httpmuxgo121_events_total", "go_godebug_non_default_behavior_httpservecontentkeepheaders_events_total", diff --git a/prometheus/go_collector_metrics_go124_test.go b/prometheus/go_collector_metrics_go124_test.go index 6c5d124..75c55aa 100644 --- a/prometheus/go_collector_metrics_go124_test.go +++ b/prometheus/go_collector_metrics_go124_test.go @@ -52,6 +52,7 @@ var ( "/godebug/non-default-behavior/gotypesalias:events": "go_godebug_non_default_behavior_gotypesalias_events_total", "/godebug/non-default-behavior/http2client:events": "go_godebug_non_default_behavior_http2client_events_total", "/godebug/non-default-behavior/http2server:events": "go_godebug_non_default_behavior_http2server_events_total", + "/godebug/non-default-behavior/httpcookiemaxnum:events": "go_godebug_non_default_behavior_httpcookiemaxnum_events_total", "/godebug/non-default-behavior/httplaxcontentlength:events": "go_godebug_non_default_behavior_httplaxcontentlength_events_total", "/godebug/non-default-behavior/httpmuxgo121:events": "go_godebug_non_default_behavior_httpmuxgo121_events_total", "/godebug/non-default-behavior/httpservecontentkeepheaders:events": "go_godebug_non_default_behavior_httpservecontentkeepheaders_events_total", @@ -109,4 +110,4 @@ var ( } ) -const expectedRuntimeMetricsCardinality = 172 +const expectedRuntimeMetricsCardinality = 173