-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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] Add host.arch
to system detector
#22940
Conversation
1eef781
to
dcf32f3
Compare
dcf32f3
to
cb33041
Compare
Sorry for the noise, this should be ready to review |
Posted a Q in #22045 (comment) |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Not stale, on hold because of #21482 |
@dmitryax this is ready for review after #21482 has landed Also cc @omrozowicz-splunk if you want to review that I am using the new functionality correctly :) |
LGTM! |
@mx-psi Please rebase |
Description:
Add
host.arch
to system detector. It is detected viaruntime.GOARCH
.This way of detecting may be wrong if running under an emulator or binary translator; the only common case I know of this happening in practice is on ARM64 macOS when using Rosetta. There is a way to detect this (see DataDog/gohai/pull/77) but since we provide arm64 builds for macOS, I think this is a non-issue
Link to tracking Issue: Fixes #22939
Testing: Added unit tests. Tested on my Linux AMD64 laptop
Documentation: Documented new attribute on README