From 2d1bfb36e0bb7f0a85d393e5d3886576127fc88f Mon Sep 17 00:00:00 2001 From: Leighton Chen Date: Mon, 1 Aug 2022 14:20:45 -0700 Subject: [PATCH] lint --- .../tests/metrics/test_otlp_metrics_exporter.py | 1 + .../src/opentelemetry/sdk/metrics/_internal/export/__init__.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/exporter/opentelemetry-exporter-otlp-proto-grpc/tests/metrics/test_otlp_metrics_exporter.py b/exporter/opentelemetry-exporter-otlp-proto-grpc/tests/metrics/test_otlp_metrics_exporter.py index 1f1b77e50a..66151d0993 100644 --- a/exporter/opentelemetry-exporter-otlp-proto-grpc/tests/metrics/test_otlp_metrics_exporter.py +++ b/exporter/opentelemetry-exporter-otlp-proto-grpc/tests/metrics/test_otlp_metrics_exporter.py @@ -316,6 +316,7 @@ def test_exporting(self): {OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE: "DELTA"}, ) def test_preferred_temporality(self): + # pylint: disable=protected-access exporter = OTLPMetricExporter( preferred_temporality={Counter: AggregationTemporality.CUMULATIVE} ) diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/export/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/export/__init__.py index 1cce9e2add..f06ab680dc 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/export/__init__.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/export/__init__.py @@ -130,6 +130,7 @@ def __init__( ] = lambda metrics_data: metrics_data.to_json() + linesep, ): + super().__init__() self.out = out self.formatter = formatter @@ -148,6 +149,7 @@ def shutdown(self, timeout_millis: float = 30_000, **kwargs) -> None: class MetricReader(ABC): + # pylint: disable=too-many-branches """ Base class for all metric readers