Skip to content

Commit bd06767

Browse files
committed
Fix linting errors
1 parent fb5307c commit bd06767

File tree

1 file changed

+6
-4
lines changed
  • opentelemetry-exporter-gcp-monitoring/src/opentelemetry/exporter/cloud_monitoring

1 file changed

+6
-4
lines changed

opentelemetry-exporter-gcp-monitoring/src/opentelemetry/exporter/cloud_monitoring/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ def __init__(
137137
self._metric_descriptors: Dict[str, MetricDescriptor] = {}
138138
self.unique_identifier = None
139139
if add_unique_identifier:
140-
self.unique_identifier = "{:08x}".format(random.randint(0, 16**8))
140+
self.unique_identifier = "{:08x}".format(
141+
random.randint(0, 16**8)
142+
)
141143

142144
(
143145
self._exporter_start_time_seconds,
@@ -405,9 +407,9 @@ def export(
405407
).items()
406408
}
407409
if self.unique_identifier:
408-
labels[UNIQUE_IDENTIFIER_KEY] = (
409-
self.unique_identifier
410-
)
410+
labels[
411+
UNIQUE_IDENTIFIER_KEY
412+
] = self.unique_identifier
411413
point = self._to_point(
412414
descriptor.metric_kind, data_point
413415
)

0 commit comments

Comments
 (0)