Operating system
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.
Status: 
type: os
Description: The operating system (OS) on which the process represented by this resource is running.
Attributes:
| Key | Stability | Requirement Level | Value Type | Description | Example Values | 
|---|---|---|---|---|---|
| os.type | Required | string | The operating system type. | windows;linux;darwin | |
| os.build_id | Recommended | string | Unique identifier for a particular build or compilation of the operating system. [1] | TQ3C.230805.001.B2;20E247;22621 | |
| os.description | Recommended | string | Human readable (not intended to be parsed) OS version information, like e.g. reported by verorlsb_release -acommands. | Microsoft Windows [Version 10.0.18363.778];Ubuntu 18.04.1 LTS | |
| os.name | Recommended | string | Human readable operating system name. | iOS;Android;Ubuntu | |
| os.version | Recommended | string | The version string of the operating system as defined in Version Attributes. | 14.2.1;18.04.1 | 
[1] os.build_id: build_id values SHOULD be obtained from the following sources:
| OS | Primary | Fallback | 
|---|---|---|
| Windows | CurrentBuildNumberfrom registryHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion | - | 
| MacOS | ProductBuildVersionfrom/System/Library/CoreServices/SystemVersion.plist | ProductBuildVersionfrom/System/Library/CoreServices/ServerVersion.plist | 
| Linux | BUILD_IDfrom/etc/os-release | BUILD_IDfrom/usr/lib/os-release;contents of /proc/sys/kernel/osrelease | 
os.type has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
| Value | Description | Stability | 
|---|---|---|
| aix | AIX (Advanced Interactive eXecutive) | |
| darwin | Apple Darwin | |
| dragonflybsd | DragonFly BSD | |
| freebsd | FreeBSD | |
| hpux | HP-UX (Hewlett Packard Unix) | |
| linux | Linux | |
| netbsd | NetBSD | |
| openbsd | OpenBSD | |
| solaris | SunOS, Oracle Solaris | |
| windows | Microsoft Windows | |
| zos | IBM z/OS | 
Feedback
Was this page helpful?
Thank you. Your feedback is appreciated!
Please let us know how we can improve this page. Your feedback is appreciated!