diff --git a/metrics/expvar/expvar.go b/metrics/expvar/expvar.go index 241015c..111eacd 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.200" += 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 diff --git a/metrics/statsd/statsd.go b/metrics/statsd/statsd.go index 6b7faf9..354a473 100644 --- a/metrics/statsd/statsd.go +++ b/metrics/statsd/statsd.go @@ -8,7 +8,7 @@ // c := NewFieldedCounter(..., "path", "status") // c.Add(1) // "myprefix.unknown.unknown:1|c\n" // c2 := c.With("path", "foo").With("status": "200") -// c2.Add(1) // "myprefix.foo.status:1|c\n" +// c2.Add(1) // "myprefix.foo.200:1|c\n" // package statsd