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

@type os_type_values() :: %{
  windows: :windows,
  linux: :linux,
  darwin: :darwin,
  freebsd: :freebsd,
  netbsd: :netbsd,
  openbsd: :openbsd,
  dragonflybsd: :dragonflybsd,
  hpux: :hpux,
  aix: :aix,
  solaris: :solaris,
  z_os: :z_os
}

The operating system type.

Enum Values

  • :windows e - Microsoft Windows
  • :linux e - Linux
  • :darwin e - Apple Darwin
  • :freebsd e - FreeBSD
  • :netbsd e - NetBSD
  • :openbsd e - OpenBSD
  • :dragonflybsd e - DragonFly BSD
  • :hpux e - HP-UX (Hewlett Packard Unix)
  • :aix e - AIX (Advanced Interactive eXecutive)
  • :solaris e - SunOS, Oracle Solaris
  • :z_os e - IBM z/OS

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"
@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"
@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"
@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}
@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"