metrics: add missing comma in histogram JSON export

Updates tailscale/corp#8641

Signed-off-by: Maisem Ali <maisem@tailscale.com>
pull/8675/head
Maisem Ali 8 months ago committed by Maisem Ali
parent 70a9854b39
commit 18b2638b07

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

Loading…
Cancel
Save