Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1260)

Unified Diff: go/metrics2/docs.go

Issue 1722163002: Metrics2: Store a registry of Counters (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Address comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « go/metrics2/counter.go ('k') | go/metrics2/metrics.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/metrics2/docs.go
diff --git a/go/metrics2/docs.go b/go/metrics2/docs.go
index 9476bc35124cf3a18624db06b4a94c63d4c518d3..091de5c4eedee87b75fc0e2456b7f4363aa967cb 100644
--- a/go/metrics2/docs.go
+++ b/go/metrics2/docs.go
@@ -19,7 +19,7 @@ Metrics2 provides a few typed metrics helpers which behave similarly to go_metri
### Counter
-Counter in the metrics2 package behaves similarly to those from go-metrics except that there is no GetOrRegisterCounter equivalent. Instead, you should call metrics2.NewCounter(name, tags), hold on to the returned struct instance and call Inc(), Dec(), etc, on it as desired. Note that Counter requires a name and not a measurement, because the measurement is always “counter”, and the provided name is inserted as a tag.
+Counter in the metrics2 package behaves similarly to those from go-metrics except that there is no GetOrRegisterCounter equivalent. Instead, you should call metrics2.GetCounter(name, tags), hold on to the returned struct instance and call Inc(), Dec(), etc, on it as desired. Note that Counter requires a name and not a measurement, because the measurement is always “counter”, and the provided name is inserted as a tag.
### Liveness
« no previous file with comments | « go/metrics2/counter.go ('k') | go/metrics2/metrics.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698