diff --git a/metrics/expvar/expvar.go b/metrics/expvar/expvar.go index bab7a20..e31e0b0 100644 --- a/metrics/expvar/expvar.go +++ b/metrics/expvar/expvar.go @@ -6,9 +6,9 @@ // bucket (key) names. That is, // // c := NewFieldedCounter(..., "path", "status") -// c.Add(1) // "myprefix_unknown_unknown" += 1 +// c.Add(1) // "myprefix.unknown.unknown" += 1 // c2 := c.With("path", "foo").With("status": "200") -// c2.Add(1) // "myprefix_foo_status" += 1 +// c2.Add(1) // "myprefix.foo.200" += 1 // // It would also be possible to have an implementation that generated more // sophisticated expvar.Values. For example, a Counter could be implemented as