@@ -138,7 +138,7 @@ func (split *dataPointSplit) appendMetricData(metricVal float64, count uint64) {
138138
139139// CalculateDeltaDatapoints retrieves the NumberDataPoint at the given index and performs rate/delta calculation if necessary.
140140func (dps numberDataPointSlice ) CalculateDeltaDatapoints (i int , instrumentationScopeName string , _ bool , calculators * emfCalculators ) ([]dataPoint , bool ) {
141- metric := dps .NumberDataPointSlice . At (i )
141+ metric := dps .At (i )
142142 labels := createLabels (metric .Attributes (), instrumentationScopeName )
143143 timestampMs := unixNanoToMilliseconds (metric .Timestamp ())
144144
@@ -177,7 +177,7 @@ func (dps numberDataPointSlice) CalculateDeltaDatapoints(i int, instrumentationS
177177}
178178
179179func (dps numberDataPointSlice ) IsStaleNaNInf (i int ) (bool , pcommon.Map ) {
180- metric := dps .NumberDataPointSlice . At (i )
180+ metric := dps .At (i )
181181 if metric .Flags ().NoRecordedValue () {
182182 return true , metric .Attributes ()
183183 }
@@ -189,7 +189,7 @@ func (dps numberDataPointSlice) IsStaleNaNInf(i int) (bool, pcommon.Map) {
189189
190190// CalculateDeltaDatapoints retrieves the HistogramDataPoint at the given index.
191191func (dps histogramDataPointSlice ) CalculateDeltaDatapoints (i int , instrumentationScopeName string , _ bool , _ * emfCalculators ) ([]dataPoint , bool ) {
192- metric := dps .HistogramDataPointSlice . At (i )
192+ metric := dps .At (i )
193193 labels := createLabels (metric .Attributes (), instrumentationScopeName )
194194 timestamp := unixNanoToMilliseconds (metric .Timestamp ())
195195
@@ -207,7 +207,7 @@ func (dps histogramDataPointSlice) CalculateDeltaDatapoints(i int, instrumentati
207207}
208208
209209func (dps histogramDataPointSlice ) IsStaleNaNInf (i int ) (bool , pcommon.Map ) {
210- metric := dps .HistogramDataPointSlice . At (i )
210+ metric := dps .At (i )
211211 if metric .Flags ().NoRecordedValue () {
212212 return true , metric .Attributes ()
213213 }
@@ -229,7 +229,7 @@ func (dps histogramDataPointSlice) IsStaleNaNInf(i int) (bool, pcommon.Map) {
229229// - Sum is only assigned to the first split to ensure the total sum of the datapoints after aggregation is correct.
230230// - Count is accumulated based on the bucket counts within each split.
231231func (dps exponentialHistogramDataPointSlice ) CalculateDeltaDatapoints (idx int , instrumentationScopeName string , _ bool , _ * emfCalculators ) ([]dataPoint , bool ) {
232- metric := dps .ExponentialHistogramDataPointSlice . At (idx )
232+ metric := dps .At (idx )
233233
234234 const splitThreshold = 100
235235 currentBucketIndex := 0
@@ -412,7 +412,7 @@ func collectDatapointsWithNegativeBuckets(split *dataPointSplit, metric pmetric.
412412}
413413
414414func (dps exponentialHistogramDataPointSlice ) IsStaleNaNInf (i int ) (bool , pcommon.Map ) {
415- metric := dps .ExponentialHistogramDataPointSlice . At (i )
415+ metric := dps .At (i )
416416 if metric .Flags ().NoRecordedValue () {
417417 return true , metric .Attributes ()
418418 }
@@ -430,7 +430,7 @@ func (dps exponentialHistogramDataPointSlice) IsStaleNaNInf(i int) (bool, pcommo
430430
431431// CalculateDeltaDatapoints retrieves the SummaryDataPoint at the given index and perform calculation with sum and count while retain the quantile value.
432432func (dps summaryDataPointSlice ) CalculateDeltaDatapoints (i int , instrumentationScopeName string , detailedMetrics bool , calculators * emfCalculators ) ([]dataPoint , bool ) {
433- metric := dps .SummaryDataPointSlice . At (i )
433+ metric := dps .At (i )
434434 labels := createLabels (metric .Attributes (), instrumentationScopeName )
435435 timestampMs := unixNanoToMilliseconds (metric .Timestamp ())
436436
@@ -485,7 +485,7 @@ func (dps summaryDataPointSlice) CalculateDeltaDatapoints(i int, instrumentation
485485}
486486
487487func (dps summaryDataPointSlice ) IsStaleNaNInf (i int ) (bool , pcommon.Map ) {
488- metric := dps .SummaryDataPointSlice . At (i )
488+ metric := dps .At (i )
489489 if metric .Flags ().NoRecordedValue () {
490490 return true , metric .Attributes ()
491491 }
0 commit comments