Debian Patches

Status for golang-github-prometheus-client-golang/1.23.2-4

Patch Description Author Forwarded Bugs Origin Last update
0001-Bug854687-Disable_flaky_test.patch Disable flaky test. Martina Ferrari <tina@debian.org> yes 2025-02-19
0002-api-headstats-int64-timestamps.patch Use explicit int64 types for millisecond-resolution timestamps

Untyped ints on 32-bit archs will lead to overflows when trying to store
millisecond-resolution Unix timestamps. This patch specifies them as int64.
Daniel Swarbrick <dswarbrick@debian.org> yes upstream 2022-09-16
0003-Fix-flaky-TestNativeHistogram.patch Skip buggy TestNativeHistogram test on ppc64el Daniel Swarbrick <dswarbrick@debian.org> yes upstream 2022-11-09
0004-Fix-collector-metrics-test-for-Go-1.24.patch Fix collector metrics test for Go 1.24 Daniel Swarbrick <dswarbrick@debian.org> not-needed 2025-08-16
0005-Fix-collector-metrics-test-for-Go-1.25.patch Fix collector metrics test for Go 1.25 Daniel Swarbrick <dswarbrick@debian.org> not-needed 2025-12-30
0006-feat-collector-add-Go-1.26-new-runtime-metrics-1942.patch feat(collector): add Go 1.26 new runtime metrics (#1942)
* feat(collector): add Go 1.26 runtime metrics support

Add support for 6 new scheduler metrics introduced in Go 1.26:
- /sched/goroutines-created:goroutines (counter)
- /sched/goroutines/not-in-go:goroutines (gauge)
- /sched/goroutines/runnable:goroutines (gauge)
- /sched/goroutines/running:goroutines (gauge)
- /sched/goroutines/waiting:goroutines (gauge)
- /sched/threads/total:threads (gauge)

These metrics enable production monitoring for detecting lock contention,
syscall blockages, scheduler bottlenecks, and CPU capacity issues.

Also includes:
- Regenerated Go 1.25 test files for Go 1.25.6 compatibility
- Fixed flaky TestTimerObserve test by adding minimum delay
- Updated supported_go_versions.json to include Go 1.26rc2


* chore: bump the minimum required version
Kemal Akkoyun <kakkoyun@users.noreply.github.com> no 2026-02-11
0007-Add-Go-1.27-runtime-metrics-support.patch Add Go 1.27 runtime metrics support
Building with Go 1.27 FTBFS (Bug#1146000): go_collector_latest_test.go,
the fixture used as a fallback for any Go version without a matching
go_collector_go1XX_test.go, does not know about the GODEBUG counters
that Go 1.27 added to runtime/metrics, so TestGoCollector_ExposedMetrics
fails on an "unexpected metric" it doesn't recognise
(go_godebug_non_default_behavior_fips140ems_events_total).

Go 1.27 changes the set of runtime/metrics exposed via the Go collector:
it adds a new GODEBUG counter for TLS Extended Master Secret enforcement
under FIPS 140 mode (fips140ems) and one for platform certificate
override behaviour (x509sslcertoverrideplatform), while several expired
GODEBUG settings from older Go releases (asynctimerchan, gotypesalias,
tls10server, tls3des, tlsrsakex, tlsunsafeekm, x509keypairleaf) are
removed.

Fix this the same way Go 1.24/1.25/1.26 were handled before: add a
dedicated pair of go_collector_go127_test.go /
go_collector_metrics_go127_test.go fixtures, tagged "go1.27 && !go1.28"
so they are picked up instead of the "latest" fallback when building
with Go 1.27. Their content is taken verbatim from upstream commit
57bb367da472cadc62ac8210c55ea2cd83143e5c ("Update Go Collector metrics
for new Go version (#2095)"), which added exactly these two files
upstream.

Issue debugged and patch created with LLM assistance.
Sascha Steinbiss <satta@debian.org> not-needed debian https://github.com/prometheus/client_golang/commit/57bb367da472cadc62ac8210c55ea2cd83143e5c 2026-09-07

All known versions for source package 'golang-github-prometheus-client-golang'

Links