We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ff0b89 + b359e21 commit 387cea9Copy full SHA for 387cea9
RELEASE_NOTES.md
@@ -14,4 +14,4 @@
14
15
## Bug Fixes
16
17
-* Fix default value of formula-aggregated metrics when no data was sent.
+* Remove invalid HasField check on scalar which can cause failure retrieving formula-aggregated metrics.
src/frequenz/client/reporting/_types.py
@@ -190,7 +190,7 @@ def sample(self) -> MetricSample:
190
metric = Metric(config.metric).name
191
# Ignoring this verification results in
192
# values of zero if the field is not set.
193
- if sample.HasField("sample") and sample.sample.HasField("value"):
+ if sample.HasField("sample"):
194
value = sample.sample.value
195
else:
196
value = math.nan
0 commit comments