From 1ee27746acd4fc07226e23407f2276d33e13c6e8 Mon Sep 17 00:00:00 2001 From: YR Chen Date: Tue, 26 Nov 2024 22:22:52 +0800 Subject: [PATCH] Fix typo: `pustil` -> `psutil` (#4311) * Fix typo: `pustil` -> `psutil` * Update CHANGELOG.md * Update test-requirements.txt --------- Co-authored-by: Riccardo Magliocchetti --- CHANGELOG.md | 2 ++ opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py | 2 +- opentelemetry-sdk/test-requirements.txt | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea5f2483efa..b83101842fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#4270](https://github.com/open-telemetry/opentelemetry-python/pull/4270)) - api: fix logging of duplicate EventLogger setup warning ([#4299](https://github.com/open-telemetry/opentelemetry-python/pull/4299)) +- sdk: fix setting of process owner in ProcessResourceDetector + ([#4311](https://github.com/open-telemetry/opentelemetry-python/pull/4311)) - sdk: fix serialization of logs severity_number field to int ([#4324](https://github.com/open-telemetry/opentelemetry-python/pull/4324)) diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py index 3235ba10dcd..a52573ac1c9 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/resources/__init__.py @@ -84,7 +84,7 @@ try: import psutil as psutil_module - pustil = psutil_module + psutil = psutil_module except ImportError: pass diff --git a/opentelemetry-sdk/test-requirements.txt b/opentelemetry-sdk/test-requirements.txt index 8a7ccc7bd78..68755072fb1 100644 --- a/opentelemetry-sdk/test-requirements.txt +++ b/opentelemetry-sdk/test-requirements.txt @@ -5,6 +5,7 @@ importlib-metadata==6.11.0 iniconfig==2.0.0 packaging==24.0 pluggy==1.5.0 +psutil==5.9.6; sys_platform != 'win32' py-cpuinfo==9.0.0 pytest==7.4.4 tomli==2.0.1