1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-25 22:41:46 +02:00

Metric SDK: Sum duplicate async observations regardless of filtering (#4289)

* Metric SDK: Remove the distinction between filtered and unfiltered attributes.
This commit is contained in:
David Ashpole
2023-07-19 11:52:11 -04:00
committed by GitHub
parent f2a9f2f2be
commit c197fe9305
7 changed files with 45 additions and 308 deletions

View File

@@ -960,9 +960,6 @@ func TestGlobalInstRegisterCallback(t *testing.T) {
_, err = preMtr.RegisterCallback(cb, preInt64Ctr, preFloat64Ctr, postInt64Ctr, postFloat64Ctr)
assert.NoError(t, err)
_, err = preMtr.RegisterCallback(cb, preInt64Ctr, preFloat64Ctr, postInt64Ctr, postFloat64Ctr)
assert.NoError(t, err)
got := metricdata.ResourceMetrics{}
err = rdr.Collect(context.Background(), &got)
assert.NoError(t, err)