Skip to content

Commit d8facf6

Browse files
committed
Use dedicated constant for existing platform detection
1 parent 2ecc2d2 commit d8facf6

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

instrumentation/opentelemetry-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
"process.runtime.context_switches": ["involuntary", "voluntary"],
150150
}
151151

152-
if sys.platform == "darwin":
152+
if psutil.MACOS:
153153
# see https://github.com/giampaolo/psutil/issues/1219
154154
_DEFAULT_CONFIG.pop("system.network.connections")
155155

0 commit comments

Comments
 (0)