Package list golang-github-go-kit-kit / ab84920
metrics: expvar: fix typo in doc comment Peter Bourgon 6 years ago
1 changed file(s) with 2 addition(s) and 2 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_status" += 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