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

Unified Diff: common/tsmon/store/inmemory.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: Specify the unit of logdog/collector/subscription/processing_time_ms with types.Milliseconds 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
« no previous file with comments | « common/tsmon/runtimestats/runtimestats.go ('k') | common/tsmon/store/storetest/testing.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/tsmon/store/inmemory.go
diff --git a/common/tsmon/store/inmemory.go b/common/tsmon/store/inmemory.go
index b4fce1e4ecd9cda3c22825fdbc3eb3a50c2e55b7..eee44d4d717a49b9d2ab120816e989a24da17560 100644
--- a/common/tsmon/store/inmemory.go
+++ b/common/tsmon/store/inmemory.go
@@ -32,6 +32,7 @@ type cellKey struct {
type metricData struct {
types.MetricInfo
+ types.MetricMetadata
cells map[cellKey][]*types.CellData
lock sync.Mutex
@@ -250,7 +251,7 @@ func (s *inMemoryStore) GetAll(ctx context.Context) []types.Cell {
if cellCopy.Target == nil {
cellCopy.Target = defaultTarget
}
- ret = append(ret, types.Cell{m.MetricInfo, cellCopy})
+ ret = append(ret, types.Cell{m.MetricInfo, m.MetricMetadata, cellCopy})
}
}
m.lock.Unlock()
« no previous file with comments | « common/tsmon/runtimestats/runtimestats.go ('k') | common/tsmon/store/storetest/testing.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698