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

Unified Diff: go/trace/service/impl.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/metrics.go ('k') | perf/go/alerting/alerting.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/trace/service/impl.go
diff --git a/go/trace/service/impl.go b/go/trace/service/impl.go
index 689d1174e1969948a1d82b72cb10aabfef345bdd..c4aa7b263b2a4616b4e769067a0228082be9534a 100644
--- a/go/trace/service/impl.go
+++ b/go/trace/service/impl.go
@@ -31,18 +31,18 @@ const (
var (
tags = map[string]string{"module": "tracedb"}
- missingParamsCalls = metrics2.NewCounter("missing-params-calls", tags)
- addParamsCalls = metrics2.NewCounter("add-params-calls", tags)
- addCalls = metrics2.NewCounter("add-calls", tags)
- addCount = metrics2.NewCounter("added-count", tags)
- removeCalls = metrics2.NewCounter("remove-calls", tags)
- listCalls = metrics2.NewCounter("list-calls", tags)
- listMD5Calls = metrics2.NewCounter("list-md5-calls", tags)
- getParamsCalls = metrics2.NewCounter("get-params-calls", tags)
- getValuesCalls = metrics2.NewCounter("get-values-calls", tags)
- getValuesRawCalls = metrics2.NewCounter("get-values-raw-calls", tags)
- getTraceIDsCalls = metrics2.NewCounter("get-traceids-calls", tags)
- pingCalls = metrics2.NewCounter("ping-calls", tags)
+ missingParamsCalls = metrics2.GetCounter("missing-params-calls", tags)
+ addParamsCalls = metrics2.GetCounter("add-params-calls", tags)
+ addCalls = metrics2.GetCounter("add-calls", tags)
+ addCount = metrics2.GetCounter("added-count", tags)
+ removeCalls = metrics2.GetCounter("remove-calls", tags)
+ listCalls = metrics2.GetCounter("list-calls", tags)
+ listMD5Calls = metrics2.GetCounter("list-md5-calls", tags)
+ getParamsCalls = metrics2.GetCounter("get-params-calls", tags)
+ getValuesCalls = metrics2.GetCounter("get-values-calls", tags)
+ getValuesRawCalls = metrics2.GetCounter("get-values-raw-calls", tags)
+ getTraceIDsCalls = metrics2.GetCounter("get-traceids-calls", tags)
+ pingCalls = metrics2.GetCounter("ping-calls", tags)
)
// bytesFromUint64 converts a uint64 to a []byte.
« no previous file with comments | « go/metrics2/metrics.go ('k') | perf/go/alerting/alerting.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698