metrics: add missing GaugeInfo case in GetAll() (#33748)
Some checks are pending
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run
/ Keeper Build (push) Waiting to run
/ Windows Build (push) Waiting to run
/ Docker Image (push) Waiting to run

GetAll did not return GaugeInfo metrics, which affects "chain/info" and "geth/info".
This commit is contained in:
vickkkkkyy 2026-02-04 20:19:50 +08:00 committed by GitHub
parent bba41f8072
commit 6b82cef68f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,6 +143,8 @@ func (r *StandardRegistry) GetAll() map[string]map[string]interface{} {
values["value"] = metric.Snapshot().Value()
case *GaugeFloat64:
values["value"] = metric.Snapshot().Value()
case *GaugeInfo:
values["value"] = metric.Snapshot().Value()
case *Healthcheck:
values["error"] = nil
metric.Check()