Skip to content

Commit 3c103f9

Browse files
change code format
Signed-off-by: Shi, Stone <[email protected]>
1 parent 1a4f7e3 commit 3c103f9

File tree

1 file changed

+9
-7
lines changed
  • instrumentation/opentelemetry-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics

1 file changed

+9
-7
lines changed

Diff for: instrumentation/opentelemetry-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py

+9-7
Original file line numberDiff line numberDiff line change
@@ -397,13 +397,15 @@ def _instrument(self, **kwargs):
397397
unit="switches",
398398
)
399399

400-
if "process.open_file_descriptor.count" in self._config:
401-
if sys.platform != "win32":
402-
self._meter.create_observable_up_down_counter(
403-
name="process.open_file_descriptor.count",
404-
callbacks=[self._get_open_file_descriptors],
405-
description="Number of file descriptors in use by the process.",
406-
)
400+
if (
401+
"process.open_file_descriptor.count" in self._config
402+
and sys.platform != "win32"
403+
):
404+
self._meter.create_observable_up_down_counter(
405+
name="process.open_file_descriptor.count",
406+
callbacks=[self._get_open_file_descriptors],
407+
description="Number of file descriptors in use by the process.",
408+
)
407409

408410
def _uninstrument(self, **__):
409411
pass

0 commit comments

Comments
 (0)