View Source OpenTelemetry.SemConv.Incubating.CpuAttributes (OpenTelemetry.SemConv v1.27.0)

OpenTelemetry Semantic Conventions for Cpu attributes.

Summary

Types

The mode of the CPU

Functions

The mode of the CPU

Types

@type cpu_mode_values() :: %{
  user: :user,
  system: :system,
  nice: :nice,
  idle: :idle,
  iowait: :iowait,
  interrupt: :interrupt,
  steal: :steal,
  kernel: :kernel
}

The mode of the CPU

Enum Values

  • :user e
  • :system e
  • :nice e
  • :idle e
  • :iowait e
  • :interrupt e
  • :steal e
  • :kernel e

Functions

@spec cpu_mode() :: :"cpu.mode"

The mode of the CPU

Examples

["user", "system"]

Elixir

iex> OpenTelemetry.SemConv.Incubating.CpuAttributes.cpu_mode()
:"cpu.mode"

iex> OpenTelemetry.SemConv.Incubating.CpuAttributes.cpu_mode_values().user
:user

iex> %{OpenTelemetry.SemConv.Incubating.CpuAttributes.cpu_mode() => OpenTelemetry.SemConv.Incubating.CpuAttributes.cpu_mode_values().user}
%{:"cpu.mode" => :user}

Erlang

?CPU_MODE.
'cpu.mode'

?CPU_MODE_VALUES_USER.
'user'

#{?CPU_MODE => ?CPU_MODE_VALUES_USER}.
#{'cpu.mode' => 'user'}
@spec cpu_mode_values() :: cpu_mode_values()