@@ -46,7 +46,7 @@ func TestConvertResourceToLabelsAllDataTypesEmptyDataPoint(t *testing.T) {
4646
4747 // Before converting resource to labels
4848 assert .Equal (t , 1 , md .ResourceMetrics ().At (0 ).Resource ().Attributes ().Len ())
49- assert .Equal (t , 0 , md .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (0 ).DoubleGauge ().DataPoints ().At (0 ).LabelsMap ().Len ())
49+ assert .Equal (t , 0 , md .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (0 ).Gauge ().DataPoints ().At (0 ).LabelsMap ().Len ())
5050 assert .Equal (t , 0 , md .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (1 ).IntGauge ().DataPoints ().At (0 ).LabelsMap ().Len ())
5151 assert .Equal (t , 0 , md .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (2 ).Sum ().DataPoints ().At (0 ).LabelsMap ().Len ())
5252 assert .Equal (t , 0 , md .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (3 ).IntSum ().DataPoints ().At (0 ).LabelsMap ().Len ())
@@ -57,15 +57,15 @@ func TestConvertResourceToLabelsAllDataTypesEmptyDataPoint(t *testing.T) {
5757
5858 // After converting resource to labels
5959 assert .Equal (t , 1 , cloneMd .ResourceMetrics ().At (0 ).Resource ().Attributes ().Len ())
60- assert .Equal (t , 1 , cloneMd .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (0 ).DoubleGauge ().DataPoints ().At (0 ).LabelsMap ().Len ())
60+ assert .Equal (t , 1 , cloneMd .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (0 ).Gauge ().DataPoints ().At (0 ).LabelsMap ().Len ())
6161 assert .Equal (t , 1 , cloneMd .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (1 ).IntGauge ().DataPoints ().At (0 ).LabelsMap ().Len ())
6262 assert .Equal (t , 1 , cloneMd .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (2 ).Sum ().DataPoints ().At (0 ).LabelsMap ().Len ())
6363 assert .Equal (t , 1 , cloneMd .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (3 ).IntSum ().DataPoints ().At (0 ).LabelsMap ().Len ())
6464 assert .Equal (t , 1 , cloneMd .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (4 ).Histogram ().DataPoints ().At (0 ).LabelsMap ().Len ())
6565 assert .Equal (t , 1 , cloneMd .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (5 ).IntHistogram ().DataPoints ().At (0 ).LabelsMap ().Len ())
6666
6767 assert .Equal (t , 1 , md .ResourceMetrics ().At (0 ).Resource ().Attributes ().Len ())
68- assert .Equal (t , 0 , md .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (0 ).DoubleGauge ().DataPoints ().At (0 ).LabelsMap ().Len ())
68+ assert .Equal (t , 0 , md .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (0 ).Gauge ().DataPoints ().At (0 ).LabelsMap ().Len ())
6969 assert .Equal (t , 0 , md .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (1 ).IntGauge ().DataPoints ().At (0 ).LabelsMap ().Len ())
7070 assert .Equal (t , 0 , md .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (2 ).Sum ().DataPoints ().At (0 ).LabelsMap ().Len ())
7171 assert .Equal (t , 0 , md .ResourceMetrics ().At (0 ).InstrumentationLibraryMetrics ().At (0 ).Metrics ().At (3 ).IntSum ().DataPoints ().At (0 ).LabelsMap ().Len ())
0 commit comments