We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd06767 commit 7a46aefCopy full SHA for 7a46aef
1 file changed
opentelemetry-exporter-gcp-monitoring/src/opentelemetry/exporter/cloud_monitoring/__init__.py
@@ -286,9 +286,6 @@ def _to_point(
286
)
287
elif isinstance(data_point, ExponentialHistogramDataPoint):
288
# Adapted from https://github.com/GoogleCloudPlatform/opentelemetry-operations-go/blob/v1.8.0/exporter/collector/metrics.go#L582
289
- mean = (
290
- data_point.sum / data_point.count if data_point.count else 0.0
291
- )
292
293
# Calculate underflow bucket (zero count + negative buckets)
294
underflow = data_point.zero_count
@@ -325,6 +322,9 @@ def _to_point(
325
322
326
323
327
324
+ mean = (
+ data_point.sum / data_point.count if data_point.count else 0.0
+ )
328
point_value = TypedValue(
329
distribution_value=Distribution(
330
count=data_point.count,
0 commit comments