metrics: add missing comma in histogram JSON export

Updates tailscale/corp#8641

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali 2023-09-07 15:20:01 -07:00 committed by Maisem Ali
parent 70a9854b39
commit 18b2638b07

View File

@ -138,8 +138,8 @@ func (h *Histogram) String() string {
}
first = false
})
fmt.Fprintf(&b, "\"sum\": %v,", &h.sum)
fmt.Fprintf(&b, "\"count\": %v", &h.count)
fmt.Fprintf(&b, ",\"sum\": %v", &h.sum)
fmt.Fprintf(&b, ",\"count\": %v", &h.count)
fmt.Fprintf(&b, "}")
return b.String()
}