@@ -381,7 +381,7 @@ func Test_ProcessMetrics_InferredMetricContext(t *testing.T) {
381
381
histogramDp := histogramMetric .Histogram ().DataPoints ().At (0 )
382
382
383
383
sumMetric .SetDescription (histogramMetric .Description ())
384
- sumMetric .SetName (histogramMetric .Name () + "_sum " )
384
+ sumMetric .SetName (histogramMetric .Name () + ".sum " )
385
385
sumMetric .Sum ().SetAggregationTemporality (pmetric .AggregationTemporalityDelta )
386
386
sumMetric .Sum ().SetIsMonotonic (true )
387
387
sumMetric .SetUnit (histogramMetric .Unit ())
@@ -397,7 +397,7 @@ func Test_ProcessMetrics_InferredMetricContext(t *testing.T) {
397
397
{ // this checks if subsequent statements apply to the newly created metric
398
398
statements : []string {
399
399
`extract_sum_metric(true) where metric.name == "operationB"` ,
400
- `set(metric.name, "new_name") where metric.name == "operationB_sum "` ,
400
+ `set(metric.name, "new_name") where metric.name == "operationB.sum "` ,
401
401
},
402
402
want : func (td pmetric.Metrics ) {
403
403
sumMetric := td .ResourceMetrics ().At (0 ).ScopeMetrics ().At (0 ).Metrics ().AppendEmpty ()
@@ -431,7 +431,7 @@ func Test_ProcessMetrics_InferredMetricContext(t *testing.T) {
431
431
fillMetricTwo (histogramMetric )
432
432
433
433
countMetric .SetDescription (histogramMetric .Description ())
434
- countMetric .SetName (histogramMetric .Name () + "_count " )
434
+ countMetric .SetName (histogramMetric .Name () + ".count " )
435
435
countMetric .Sum ().SetAggregationTemporality (pmetric .AggregationTemporalityDelta )
436
436
countMetric .Sum ().SetIsMonotonic (true )
437
437
countMetric .SetUnit ("1" )
@@ -1196,7 +1196,7 @@ func Test_ProcessMetrics_InferredDataPointContext(t *testing.T) {
1196
1196
summaryDp := summaryMetric .Summary ().DataPoints ().At (0 )
1197
1197
1198
1198
sumMetric .SetDescription (summaryMetric .Description ())
1199
- sumMetric .SetName (summaryMetric .Name () + "_count " )
1199
+ sumMetric .SetName (summaryMetric .Name () + ".count " )
1200
1200
sumMetric .Sum ().SetAggregationTemporality (pmetric .AggregationTemporalityDelta )
1201
1201
sumMetric .Sum ().SetIsMonotonic (true )
1202
1202
sumMetric .SetUnit (summaryMetric .Unit ())
@@ -1218,7 +1218,7 @@ func Test_ProcessMetrics_InferredDataPointContext(t *testing.T) {
1218
1218
summaryDp := summaryMetric .Summary ().DataPoints ().At (0 )
1219
1219
1220
1220
sumMetric .SetDescription (summaryMetric .Description ())
1221
- sumMetric .SetName (summaryMetric .Name () + "_sum " )
1221
+ sumMetric .SetName (summaryMetric .Name () + ".sum " )
1222
1222
sumMetric .Sum ().SetAggregationTemporality (pmetric .AggregationTemporalityDelta )
1223
1223
sumMetric .Sum ().SetIsMonotonic (true )
1224
1224
sumMetric .SetUnit (summaryMetric .Unit ())
@@ -1243,7 +1243,7 @@ func Test_ProcessMetrics_InferredDataPointContext(t *testing.T) {
1243
1243
summaryDp := summaryMetric .Summary ().DataPoints ().At (0 )
1244
1244
1245
1245
sumMetric .SetDescription (summaryMetric .Description ())
1246
- sumMetric .SetName (summaryMetric .Name () + "_sum " )
1246
+ sumMetric .SetName (summaryMetric .Name () + ".sum " )
1247
1247
sumMetric .Sum ().SetAggregationTemporality (pmetric .AggregationTemporalityDelta )
1248
1248
sumMetric .Sum ().SetIsMonotonic (true )
1249
1249
sumMetric .SetUnit ("new unit" )
0 commit comments