Skip to content

Commit

Permalink
Create lookup for OS build ID (open-telemetry#1374)
Browse files Browse the repository at this point in the history
Co-authored-by: Joao Grassi <[email protected]>
Co-authored-by: Liudmila Molkova <[email protected]>
  • Loading branch information
3 people authored and drewby committed Oct 1, 2024
1 parent 7e5a6b2 commit f7f5c4e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions model/resource/os.yaml
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`|

0 comments on commit f7f5c4e

Please sign in to comment.