From c7d8d2fa575e789db90f9d7a1bcd65ab0593b60e Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 30 Sep 2022 13:15:54 -0700 Subject: [PATCH] Fix aggregatorCache* docs --- sdk/metric/meter.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sdk/metric/meter.go b/sdk/metric/meter.go index d39ab253d5d..59ea019462e 100644 --- a/sdk/metric/meter.go +++ b/sdk/metric/meter.go @@ -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