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 1 year ago committed by Maisem Ali
parent 70a9854b39
commit 18b2638b07

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

Loading…
Cancel
Save