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.
1 parent fa7cfde commit 49039a4Copy full SHA for 49039a4
ext/opentelemetry-ext-prometheus/src/opentelemetry/ext/prometheus/__init__.py
@@ -163,8 +163,7 @@ def _translate_to_prometheus(self, metric_record: MetricRecord):
163
# TODO: Add support for histograms when supported in OT
164
elif isinstance(metric_record.instrument, ValueRecorder):
165
value = metric_record.aggregator.checkpoint
166
- isinstance(metric_record.aggregator, MinMaxSumCountAggregator):
167
- value = metric_record.aggregator.checkpoint
+ if isinstance(metric_record.aggregator, MinMaxSumCountAggregator):
168
prometheus_metric = SummaryMetricFamily(
169
name=metric_name,
170
documentation=description,
0 commit comments