View Source OpenTelemetry.SemConv.Incubating.OSAttributes (OpenTelemetry.SemConv v1.27.0)
OpenTelemetry Semantic Conventions for OS attributes.
Summary
Types
The operating system type.
Functions
Unique identifier for a particular build or compilation of the operating system.
Human readable (not intended to be parsed) OS version information, like e.g. reported by ver
or lsb_release -a
commands.
Human readable operating system name.
The operating system type.
The version string of the operating system as defined in Version Attributes.
Types
Functions
@spec os_build_id() :: :"os.build_id"
Unique identifier for a particular build or compilation of the operating system.
Value type
Value must be of type atom() | String.t()
.
Examples
["TQ3C.230805.001.B2", "20E247", "22621"]
iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_build_id()
:"os.build_id"
?OS_BUILD_ID.
'os.build_id'
@spec os_description() :: :"os.description"
Human readable (not intended to be parsed) OS version information, like e.g. reported by ver
or lsb_release -a
commands.
Value type
Value must be of type atom() | String.t()
.
Examples
["Microsoft Windows [Version 10.0.18363.778]", "Ubuntu 18.04.1 LTS"]
iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_description()
:"os.description"
?OS_DESCRIPTION.
'os.description'
@spec os_name() :: :"os.name"
Human readable operating system name.
Value type
Value must be of type atom() | String.t()
.
Examples
["iOS", "Android", "Ubuntu"]
iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_name()
:"os.name"
?OS_NAME.
'os.name'
@spec os_type() :: :"os.type"
The operating system type.
iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_type()
:"os.type"
iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_type_values().windows
:windows
iex> %{OpenTelemetry.SemConv.Incubating.OSAttributes.os_type() => OpenTelemetry.SemConv.Incubating.OSAttributes.os_type_values().windows}
%{:"os.type" => :windows}
?OS_TYPE.
'os.type'
?OS_TYPE_VALUES_WINDOWS.
'windows'
#{?OS_TYPE => ?OS_TYPE_VALUES_WINDOWS}.
#{'os.type' => 'windows'}
@spec os_type_values() :: os_type_values()
@spec os_version() :: :"os.version"
The version string of the operating system as defined in Version Attributes.
Value type
Value must be of type atom() | String.t()
.
Examples
["14.2.1", "18.04.1"]
iex> OpenTelemetry.SemConv.Incubating.OSAttributes.os_version()
:"os.version"
?OS_VERSION.
'os.version'