File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
opentelemetry-exporter-gcp-monitoring/src/opentelemetry/exporter/cloud_monitoring Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments