Package list golang-github-go-kit-kit / 993a123
metrics: fix typos in doc comments Peter Bourgon 6 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
55 // bucket (key) names. That is,
66 //
77 // c := NewFieldedCounter(..., "path", "status")
8 // c.Add(1) // "myprefix.unknown.unknown" += 1
8 // c.Add(1) // "myprefix_unknown_unknown" += 1
99 // c2 := c.With("path", "foo").With("status": "200")
10 // c2.Add(1) // "myprefix.foo.200" += 1
10 // c2.Add(1) // "myprefix_foo_200" += 1
1111 //
1212 // It would also be possible to have an implementation that generated more
1313 // sophisticated expvar.Values. For example, a Counter could be implemented as
77 // c := NewFieldedCounter(..., "path", "status")
88 // c.Add(1) // "myprefix.unknown.unknown:1|c\n"
99 // c2 := c.With("path", "foo").With("status": "200")
10 // c2.Add(1) // "myprefix.foo.status:1|c\n"
10 // c2.Add(1) // "myprefix.foo.200:1|c\n"
1111 //
1212 package statsd
1313