-
Notifications
You must be signed in to change notification settings - Fork 362
Add host.arch attribute to HostDetector and update tests #3147
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
Merged
Kielek
merged 20 commits into
open-telemetry:main
from
AguirreMoy:u/aguirremoy/host-arch
Oct 2, 2025
Merged
Changes from 5 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
7ae7583
arch
AguirreMoy 0dd4400
update
AguirreMoy 188cfd9
lint
AguirreMoy 4431f02
undo format
AguirreMoy 4e65217
undo format
AguirreMoy d88c86d
changelog update
AguirreMoy cb65f4c
update attributes buffer
AguirreMoy 7c05a1a
Specify host.arch only on .net
AguirreMoy 2175618
simplify naming
AguirreMoy ea1f32f
map to existing otel semantics
AguirreMoy bc8cc66
map to semantics
AguirreMoy ed77e8d
Merge branch 'main' into u/aguirremoy/host-arch
AguirreMoy 3dfcab2
Merge branch 'main' into u/aguirremoy/host-arch
AguirreMoy ec7a3f8
Merge branch 'main' into u/aguirremoy/host-arch
Kielek 87fefce
direct feedback - changelog and readme
Kielek 13f45b7
PR feedback - add only well known architectures
Kielek 0142e7b
remove redundant comment
Kielek fdb04ed
PR feedback -fix compilation on netstandard
Kielek 327186e
compilation warning for .NET Fx 4.7.1+
Kielek 97cb392
Switching to OSArchitecture
Kielek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,8 @@ | |
|
|
||
| ## Unreleased | ||
|
|
||
| * Added support for the `host.arch` resource attribute in `HostDetector`, reporting the host architecture (e.g., `X64`, `Arm64`) using `System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture`. | ||
|
Check failure on line 5 in src/OpenTelemetry.Resources.Host/CHANGELOG.md
|
||
Kielek marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## 1.12.0-beta.1 | ||
|
|
||
| Released 2025-May-06 | ||
|
|
||
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,8 +54,11 @@ | |
| The resource detectors will record the following metadata based on where | ||
| your application is running: | ||
|
|
||
| - **HostDetector**: `host.id` (when running on non-containerized systems), `host.name`. | ||
| - **HostDetector**: | ||
| - `host.id` (when running on non-containerized systems) | ||
| - `host.name` | ||
| - `host.arch` (the host architecture, e.g., `X64`, `Arm64`) | ||
AguirreMoy marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## References | ||
|
|
||
| - [OpenTelemetry Project](https://opentelemetry.io/) | ||
| - [OpenTelemetry Project](https://opentelemetry.io/) | ||
|
Check failure on line 64 in src/OpenTelemetry.Resources.Host/README.md
|
||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.