Skip to content

Commit b71d498

Browse files
committed
fix(sphinx): remove typing for sphinx runthrough
1 parent 86a1690 commit b71d498

File tree

1 file changed

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

1 file changed

+2
-10
lines changed

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

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,7 @@ def __init__(self, prefix: str = ""):
123123
def add_metrics_data(self, metric_records: Sequence[MetricRecord]) -> None:
124124
self._metrics_to_export.append(metric_records)
125125

126-
def collect(
127-
self,
128-
) -> Iterable[
129-
Union[CounterMetricFamily, SummaryMetricFamily, UnknownMetricFamily]
130-
]:
126+
def collect(self):
131127
"""Collect fetches the metrics from OpenTelemetry
132128
and delivers them as Prometheus Metrics.
133129
Collect is invoked every time a prometheus.Gatherer is run
@@ -142,11 +138,7 @@ def collect(
142138
if prometheus_metric is not None:
143139
yield prometheus_metric
144140

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):
150142
prometheus_metric = None
151143
label_values = []
152144
label_keys = []

0 commit comments

Comments
 (0)