Skip to content

Commit e117db1

Browse files
author
Alex Boten
authored
[bugfix] aggregate expects a measurement (open-telemetry#2469)
The previous code was passing in a value.
1 parent c1174ea commit e117db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opentelemetry-sdk/src/opentelemetry/sdk/_metrics/_view_instrument_match.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def consume_measurement(self, measurement: Measurement) -> None:
6868
with self._lock:
6969
self._attributes_aggregation[attributes] = self._aggregation()
7070

71-
self._attributes_aggregation[attributes].aggregate(measurement.value)
71+
self._attributes_aggregation[attributes].aggregate(measurement)
7272

7373
def collect(self, temporality: int) -> Iterable[Metric]:
7474

0 commit comments

Comments
 (0)