Skip to content

Commit

Permalink
add explanation comment
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Jul 15, 2024
1 parent 1970b37 commit 377714c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions processor/groupbyattrsprocessor/processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -870,13 +870,17 @@ func TestCompacting(t *testing.T) {
}

func Test_GetMetricInInstrumentationLibrary(t *testing.T) {
// input metric with datapoint
m := pmetric.NewMetric()
m.SetName("metric")
m.SetDescription("description")
m.SetUnit("unit")
d := m.SetEmptyGauge().DataPoints().AppendEmpty()
d.SetDoubleValue(1.0)

// expected metric without datapoint
// the datapoints are not copied to the resulting metric, since
// datapoints are moved in between metrics in the processor
m2 := pmetric.NewMetric()
m2.SetName("metric")
m2.SetDescription("description")
Expand Down

0 comments on commit 377714c

Please sign in to comment.