We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb97ad3 commit 58d1216Copy full SHA for 58d1216
opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/_view_instrument_match.py
@@ -136,4 +136,8 @@ def collect(
136
)
137
if data_point is not None:
138
data_points.append(data_point)
139
+
140
+ # Returning here None instead of an empty list because the caller
141
+ # does not consume a sequence and to be consistent with the rest of
142
+ # collect methods that also return None.
143
return data_points or None
0 commit comments