Skip to content

Commit 49039a4

Browse files
committed
chore(ext/prometheus): remove double variable def
1 parent fa7cfde commit 49039a4

File tree

1 file changed

+1
-2
lines changed
  • ext/opentelemetry-ext-prometheus/src/opentelemetry/ext/prometheus

1 file changed

+1
-2
lines changed

ext/opentelemetry-ext-prometheus/src/opentelemetry/ext/prometheus/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ def _translate_to_prometheus(self, metric_record: MetricRecord):
163163
# TODO: Add support for histograms when supported in OT
164164
elif isinstance(metric_record.instrument, ValueRecorder):
165165
value = metric_record.aggregator.checkpoint
166-
isinstance(metric_record.aggregator, MinMaxSumCountAggregator):
167-
value = metric_record.aggregator.checkpoint
166+
if isinstance(metric_record.aggregator, MinMaxSumCountAggregator):
168167
prometheus_metric = SummaryMetricFamily(
169168
name=metric_name,
170169
documentation=description,

0 commit comments

Comments
 (0)