Go

Go Attributes

This document defines Go related attributes.

Attributes:

KeyStabilityValue TypeDescriptionExample Values
go.cpu.detailed_stateDevelopmentstringThe detailed state of the CPU. [1]gc/pause; gc/mark/assist
go.cpu.stateDevelopmentstringThe state of the CPU.user; gc
go.memory.detailed_typeDevelopmentstringThe detailed type of memory. [2]heap/objects; heap/free
go.memory.typeDevelopmentstringThe type of memory.other; stack

[1] go.cpu.detailed_state: Value SHOULD match the specific CPU class reported by the Go runtime under /cpu/classes/.... The list of possible values is subject to change with the Go version used.

[2] go.memory.detailed_type: Value SHOULD match the specific memory class reported by the Go runtime under /memory/classes/.... The list of possible values is subject to change with the Go version used.


go.cpu.state 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.

ValueDescriptionStability
gcCPU time spent performing garbage collection tasks.Development
idleAvailable CPU time not spent executing any Go or Go runtime code.Development
scavengeCPU time spent returning unused memory to the underlying platform.Development
userCPU time spent running user Go code.Development

go.memory.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.

ValueDescriptionStability
otherMemory used by the Go runtime, excluding other categories of memory usage described in this enumeration.Development
stackMemory allocated from the heap that is reserved for stack space, whether or not it is currently in-use. [3]Development

[3]: Computed from /memory/classes/heap/stacks:bytes.