File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
ext/opentelemetry-ext-prometheus/src/opentelemetry/ext/prometheus Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -123,11 +123,7 @@ def __init__(self, prefix: str = ""):
123
123
def add_metrics_data (self , metric_records : Sequence [MetricRecord ]) -> None :
124
124
self ._metrics_to_export .append (metric_records )
125
125
126
- def collect (
127
- self ,
128
- ) -> Iterable [
129
- Union [CounterMetricFamily , SummaryMetricFamily , UnknownMetricFamily ]
130
- ]:
126
+ def collect (self ):
131
127
"""Collect fetches the metrics from OpenTelemetry
132
128
and delivers them as Prometheus Metrics.
133
129
Collect is invoked every time a prometheus.Gatherer is run
@@ -142,11 +138,7 @@ def collect(
142
138
if prometheus_metric is not None :
143
139
yield prometheus_metric
144
140
145
- def _translate_to_prometheus (
146
- self , metric_record : MetricRecord
147
- ) -> Optional [
148
- Union [CounterMetricFamily , SummaryMetricFamily , UnknownMetricFamily ]
149
- ]:
141
+ def _translate_to_prometheus (self , metric_record : MetricRecord ):
150
142
prometheus_metric = None
151
143
label_values = []
152
144
label_keys = []
You can’t perform that action at this time.
0 commit comments