File tree 4 files changed +1
-15
lines changed
4 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ type DataPoint struct {
42
42
// - pdata.DoubleDataPointSlice
43
43
// - pdata.IntHistogramDataPointSlice
44
44
// - pdata.DoubleHistogramDataPointSlice
45
+ // - pdata.DoubleSummaryDataPointSlice
45
46
type DataPoints interface {
46
47
Len () int
47
48
// NOTE: At() is an expensive call as it calculates the metric's value
@@ -143,17 +144,8 @@ func (dps DoubleHistogramDataPointSlice) At(i int) DataPoint {
143
144
labels := createLabels (metric .LabelsMap (), dps .instrumentationLibraryName )
144
145
timestamp := unixNanoToMilliseconds (metric .Timestamp ())
145
146
146
- var minBound , maxBound float64
147
- bucketBounds := metric .ExplicitBounds ()
148
- if len (bucketBounds ) > 0 {
149
- minBound = bucketBounds [0 ]
150
- maxBound = bucketBounds [len (bucketBounds )- 1 ]
151
- }
152
-
153
147
return DataPoint {
154
148
Value : & CWMetricStats {
155
- Min : minBound ,
156
- Max : maxBound ,
157
149
Count : metric .Count (),
158
150
Sum : metric .Sum (),
159
151
},
Original file line number Diff line number Diff line change @@ -383,8 +383,6 @@ func TestDoubleHistogramDataPointSliceAt(t *testing.T) {
383
383
384
384
expectedDP := DataPoint {
385
385
Value : & CWMetricStats {
386
- Min : 1 ,
387
- Max : 3 ,
388
386
Sum : 17.13 ,
389
387
Count : 17 ,
390
388
},
Original file line number Diff line number Diff line change @@ -97,8 +97,6 @@ func TestAddToGroupedMetric(t *testing.T) {
97
97
map [string ]* MetricInfo {
98
98
"foo" : {
99
99
Value : & CWMetricStats {
100
- Min : 0 ,
101
- Max : 10 ,
102
100
Count : 18 ,
103
101
Sum : 35.0 ,
104
102
},
Original file line number Diff line number Diff line change @@ -425,8 +425,6 @@ func TestTranslateOtToGroupedMetric(t *testing.T) {
425
425
timerMetrics := map [string ]* MetricInfo {
426
426
"spanTimer" : {
427
427
Value : & CWMetricStats {
428
- Max : 10 ,
429
- Min : 0 ,
430
428
Count : 5 ,
431
429
Sum : 15 ,
432
430
},
You can’t perform that action at this time.
0 commit comments