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 c7d8d2f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sdk/metric/meter.go
Expand Up @@ -83,13 +83,13 @@ func (r *meterRegistry) Get(s instrumentation.Scope) *meter {
type meter struct {
instrumentation.Scope

// aggregatorCache* ensures no duplicate Aggregators are created from the
// aggregatorCache* ensures no duplicate Aggregators are created for 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 c7d8d2f

Please sign in to comment.