We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb5307c commit bd06767Copy full SHA for bd06767
1 file changed
opentelemetry-exporter-gcp-monitoring/src/opentelemetry/exporter/cloud_monitoring/__init__.py
@@ -137,7 +137,9 @@ def __init__(
137
self._metric_descriptors: Dict[str, MetricDescriptor] = {}
138
self.unique_identifier = None
139
if add_unique_identifier:
140
- self.unique_identifier = "{:08x}".format(random.randint(0, 16**8))
+ self.unique_identifier = "{:08x}".format(
141
+ random.randint(0, 16**8)
142
+ )
143
144
(
145
self._exporter_start_time_seconds,
@@ -405,9 +407,9 @@ def export(
405
407
).items()
406
408
}
409
if self.unique_identifier:
- labels[UNIQUE_IDENTIFIER_KEY] = (
- self.unique_identifier
410
- )
+ labels[
411
+ UNIQUE_IDENTIFIER_KEY
412
+ ] = self.unique_identifier
413
point = self._to_point(
414
descriptor.metric_kind, data_point
415
)
0 commit comments