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] Add host.arch to system detector #22940

Merged
merged 7 commits into from
Jul 18, 2023

Conversation

mx-psi
Copy link
Member

@mx-psi mx-psi commented May 30, 2023

Description:

Add host.arch to system detector. It is detected via runtime.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

@mx-psi mx-psi marked this pull request as ready for review May 30, 2023 10:11
@mx-psi mx-psi requested a review from a team as a code owner May 30, 2023 10:11
@mx-psi mx-psi requested a review from dmitryax as a code owner May 30, 2023 16:14
@github-actions github-actions bot added cmd/configschema configschema command cmd/otelcontribcol otelcontribcol command labels May 30, 2023
@github-actions github-actions bot requested a review from pmcollins May 30, 2023 16:14
@mx-psi mx-psi removed cmd/configschema configschema command cmd/otelcontribcol otelcontribcol command labels May 30, 2023
@mx-psi
Copy link
Member Author

mx-psi commented May 30, 2023

Sorry for the noise, this should be ready to review

@dmitryax
Copy link
Member

Posted a Q in #22045 (comment)

@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jun 15, 2023
@mx-psi mx-psi added on hold This is blocked by another PR/issue and removed Stale labels Jun 15, 2023
@mx-psi
Copy link
Member Author

mx-psi commented Jun 15, 2023

Not stale, on hold because of #21482

@mx-psi mx-psi requested a review from atoulme as a code owner June 15, 2023 12:08
@mx-psi mx-psi removed exporter/sapm on hold This is blocked by another PR/issue labels Jun 28, 2023
@mx-psi
Copy link
Member Author

mx-psi commented Jun 28, 2023

@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 :)

@omrozowicz-splunk
Copy link
Contributor

@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! ☺️

@dmitryax
Copy link
Member

@mx-psi Please rebase

@mx-psi mx-psi merged commit 02f688d into open-telemetry:main Jul 18, 2023
87 of 88 checks passed
@mx-psi mx-psi deleted the mx-psi/system-host-arch branch July 18, 2023 11:34
@github-actions github-actions bot added this to the next release milestone Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[processor/resourcedetection] Add host.arch to system detector
4 participants