Skip to content

Commit

Permalink
Fix aggregatorCache* docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Sep 30, 2022
1 parent 40ae7fa commit 158a5da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/metric/meter.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ type meter struct {
// aggregatorCache* ensures no duplicate Aggregators are created from the
// same instrument within the scope of all instruments this meter owns.
//
// Duplicate creations that for the same number are identified in the
// viewCache. Since the conflict is "resolvable", an aggregator still needs
// to be returned when this occurs. Therefore, instruments of different
// numbers are not tracked with the same cache.
// Duplicate instrument creations for different number types are identified
// in the viewCache. Since the conflict is "resolvable", a valid aggregator
// still needs to be returned when this occurs. Therefore, instruments of
// different numbers are not tracked with the same cache.
aggregatorCacheInt64 cache[instrumentID, aggVal[int64]]
aggregatorCacheFloat64 cache[instrumentID, aggVal[float64]]
// viewCache ensures instrument conflicts this meter is asked to create are
Expand Down

0 comments on commit 158a5da

Please sign in to comment.