Skip to content

Commit 45d7a71

Browse files
committed
Fix CI
1 parent 48d786e commit 45d7a71

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

exporter/opentelemetry-exporter-otlp-proto-common/src/opentelemetry/exporter/otlp/proto/common/_internal/metrics_encoder/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414
import logging
1515
from os import environ
16-
from typing import Dict
16+
from typing import Dict, List
1717

1818
from opentelemetry.exporter.otlp.proto.common._internal import (
1919
_encode_attributes,
@@ -59,8 +59,6 @@
5959
ExplicitBucketHistogramAggregation,
6060
ExponentialBucketHistogramAggregation,
6161
)
62-
from os import environ
63-
from typing import Dict
6462

6563
_logger = logging.getLogger(__name__)
6664

@@ -344,7 +342,7 @@ def _encode_metric(metric, pb2_metric):
344342
)
345343

346344

347-
def _encode_exemplars(sdk_exemplars: list[Exemplar]) -> list:
345+
def _encode_exemplars(sdk_exemplars: List[Exemplar]) -> List[pb2.Exemplar]:
348346
"""
349347
Converts a list of SDK Exemplars into a list of protobuf Exemplars.
350348

exporter/opentelemetry-exporter-otlp-proto-common/tests/test_metrics_encoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# pylint: disable=protected-access
15+
# pylint: disable=protected-access,too-many-lines
1616
import unittest
1717

1818
from opentelemetry.exporter.otlp.proto.common._internal.metrics_encoder import (

opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/measurement_consumer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def consume_measurement(self, measurement: Measurement) -> None:
8484
measurement.time_unix_nano,
8585
measurement.attributes,
8686
measurement.context,
87-
),
87+
)
8888
)
8989
for reader_storage in self._reader_storages.values():
9090
reader_storage.consume_measurement(
@@ -134,7 +134,7 @@ def collect(
134134
measurement.time_unix_nano,
135135
measurement.attributes,
136136
measurement.context,
137-
),
137+
)
138138
)
139139
metric_reader_storage.consume_measurement(
140140
measurement, should_sample_exemplar

0 commit comments

Comments
 (0)