metrics: add missing GaugeInfo case in GetAll()

This commit is contained in:
Vicky 2026-02-04 00:03:53 +08:00
parent 54a91b3ad8
commit 3a1cb0d9dd

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()