Skip to content

Commit ce20dd0

Browse files
committed
Rename getter methods to private
1 parent 479e28e commit ce20dd0

File tree

1 file changed

+4
-4
lines changed
  • exporter/opentelemetry-exporter-otlp-proto-common/src/opentelemetry/exporter/otlp/proto/common/_internal/metrics_encoder

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ def _common_configuration(
7171

7272
MetricExporter.__init__(
7373
self,
74-
preferred_temporality=self.get_temporality(preferred_temporality),
75-
preferred_aggregation=self.get_aggregation(preferred_aggregation),
74+
preferred_temporality=self._get_temporality(preferred_temporality),
75+
preferred_aggregation=self._get_aggregation(preferred_aggregation),
7676
)
7777

78-
def get_temporality(
78+
def _get_temporality(
7979
self, preferred_temporality: Dict[type, AggregationTemporality]
8080
) -> Dict[type, AggregationTemporality]:
8181

@@ -131,7 +131,7 @@ def get_temporality(
131131

132132
return instrument_class_temporality
133133

134-
def get_aggregation(
134+
def _get_aggregation(
135135
self,
136136
preferred_aggregation: Dict[type, Aggregation],
137137
) -> Dict[type, Aggregation]:

0 commit comments

Comments
 (0)