forked from open-telemetry/semantic-conventions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create lookup for OS build ID (open-telemetry#1374)
Co-authored-by: Joao Grassi <[email protected]> Co-authored-by: Liudmila Molkova <[email protected]>
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
groups: | ||
- id: os | ||
type: resource | ||
brief: > | ||
The operating system (OS) on which the process represented by this resource is running. | ||
note: > | ||
In case of virtualized environments, this is the operating system as it is observed by | ||
the process, i.e., the virtualized guest rather than the underlying host. | ||
attributes: | ||
- ref: os.type | ||
requirement_level: required | ||
- ref: os.description | ||
- ref: os.name | ||
- ref: os.version | ||
- ref: os.build_id | ||
note: > | ||
`build_id` values SHOULD be obtained from the following sources: | ||
| OS | Primary | Fallback | | ||
| ------- | ------- | ------- | | ||
| Windows | `CurrentBuildNumber` from registry `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion` | - | | ||
| MacOS | `ProductBuildVersion` from `/System/Library/CoreServices/SystemVersion.plist` | `ProductBuildVersion` from `/System/Library/CoreServices/ServerVersion.plist` | | ||
| Linux | `BUILD_ID` from `/etc/os-release` | `BUILD_ID` from `/usr/lib/os-release`; <br> contents of `/proc/sys/kernel/osrelease`| |