[RESOURCE DETECTOR] Add the host resource detector - #4418
Merged
marcalff merged 6 commits intoAug 13, 2026
Conversation
Signed-off-by: Mateen Anjum <mateenali66@gmail.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4418 +/- ##
==========================================
- Coverage 82.59% 82.58% -0.01%
==========================================
Files 509 511 +2
Lines 19972 20018 +46
==========================================
+ Hits 16494 16529 +35
- Misses 3478 3489 +11
🚀 New features to boost your workflow:
|
Signed-off-by: Mateen Anjum <mateenali66@gmail.com>
dbarker
approved these changes
Aug 12, 2026
dbarker
left a comment
Member
There was a problem hiding this comment.
Looks good. Thank you! Just requesting addition of this detector to the install test.
Signed-off-by: Mateen Anjum <mateenali66@gmail.com>
marcalff
approved these changes
Aug 12, 2026
marcalff
left a comment
Member
There was a problem hiding this comment.
LGTM, thanks for the feature.
…ctor # Conflicts: # CHANGELOG.md
lalitb
reviewed
Aug 12, 2026
…ource Signed-off-by: Mateen Anjum <mateenali66@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4413
Changes
Adds the host resource detector in
resource_detectors/, settinghost.name,host.archandhost.idper semantic conventions, with Linux, MacOS and Windows support.Platform specifics, also documented on the class:
host.name:gethostname()on Linux/MacOS,GetComputerNameExW()on Windowshost.id:/etc/machine-idwith/var/lib/dbus/machine-idfallback on Linux,gethostuuid()on MacOS, theHKLM\SOFTWARE\Microsoft\Cryptography\MachineGuidregistry value on Windows. Omitted when no source is available (for example Linux containers without a machine id).host.arch: mapped at compile time from predefined architecture macros to the semconv values, omitted for architectures the conventions do not enumerate.Follows the process detector layout (detector +
detail/utils split for testability). Verified by running the utils on MacOS arm64 (hostname,arm64, hardware UUID all populated); Linux and Windows paths exercised in CI.For significant contributions please make sure you have completed the following items:
CHANGELOG.mdupdated for non-trivial changes