From 158a5da44a290c0f41c68c0f4ad907eef67b262a 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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/metric/meter.go b/sdk/metric/meter.go index d39ab253d5d..e558a78a4f4 100644 --- a/sdk/metric/meter.go +++ b/sdk/metric/meter.go @@ -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