diff --git a/sdk/metric/meter.go b/sdk/metric/meter.go index 6f31fa03c60..423cba8bdf9 100644 --- a/sdk/metric/meter.go +++ b/sdk/metric/meter.go @@ -115,6 +115,7 @@ func (m *meter) int64ObservableInstrument(id Instrument, callbacks []metric.Int6 if err != nil { return inst, err } + // Drop aggregation if len(in) == 0 { continue } @@ -230,6 +231,7 @@ func (m *meter) float64ObservableInstrument(id Instrument, callbacks []metric.Fl if err != nil { return inst, err } + // Drop aggregation if len(in) == 0 { continue }