[bugfix] aggregate expects a measurement
The previous code was passing in a value.
@@ -68,7 +68,7 @@ class _ViewInstrumentMatch:
with self._lock:
self._attributes_aggregation[attributes] = self._aggregation()
- self._attributes_aggregation[attributes].aggregate(measurement.value)
+ self._attributes_aggregation[attributes].aggregate(measurement)
def collect(self, temporality: int) -> Iterable[Metric]:
