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"]
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}
@spec cpu_mode_values() :: cpu_mode_values()