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

Unified Diff: server/internal/logdog/collector/coordinator/cache.go

Issue 2123853002: Added unit annotation supports onto tsmon in go. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Created 4 years, 5 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
Index: server/internal/logdog/collector/coordinator/cache.go
diff --git a/server/internal/logdog/collector/coordinator/cache.go b/server/internal/logdog/collector/coordinator/cache.go
index 06f8b3056b01fdfe05738da71689bf338801e259..54f2e6131c8c2077749caa80419f91739a207a42 100644
--- a/server/internal/logdog/collector/coordinator/cache.go
+++ b/server/internal/logdog/collector/coordinator/cache.go
@@ -17,6 +17,7 @@ import (
"github.com/luci/luci-go/common/promise"
"github.com/luci/luci-go/common/tsmon/field"
"github.com/luci/luci-go/common/tsmon/metric"
+ tsmon_types "github.com/luci/luci-go/common/tsmon/types"
"golang.org/x/net/context"
)
@@ -31,6 +32,7 @@ const (
var (
tsCache = metric.NewCounter("logdog/collector/coordinator/cache",
"Metrics for cache uses, tracking hits and misses.",
+ tsmon_types.MetricMetadata{},
field.Bool("hit"))
)
« server/cmd/logdog_collector/main.go ('K') | « server/internal/logdog/collector/collector.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698