Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[processor/resourcedetection] Fetch CPU info only if required #33774

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

ChrsMark
Copy link
Member

@ChrsMark ChrsMark commented Jun 26, 2024

Description:

This PR changes the system resource detector so as to only try to fetch the CPU info when required. The CPU info attributes are disabled by default so we should only fetch this information when at least one of those is enabled.

Link to tracking Issue: #33768

Testing: Added unti-tests

Documentation: ~

/cc @mx-psi

Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
@ChrsMark ChrsMark force-pushed the call_cpu_info_only_on_demand branch from 5634b88 to 7b6139b Compare June 26, 2024 08:50
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
@mx-psi
Copy link
Member

mx-psi commented Jun 26, 2024

@cwegener will wait until end of week to merge this in case you want to leave a review :)

@mx-psi mx-psi merged commit 80d630b into open-telemetry:main Jun 28, 2024
154 checks passed
@github-actions github-actions bot added this to the next release milestone Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants