Go
Go Attributes
This document defines Go related attributes.
Attributes:
| Key | Stability | Value Type | Description | Example Values |
|---|---|---|---|---|
go.cpu.detailed_state | string | The detailed state of the CPU. [1] | gc/pause; gc/mark/assist | |
go.cpu.state | string | The state of the CPU. | user; gc | |
go.memory.detailed_type | string | The detailed type of memory. [2] | heap/objects; heap/free | |
go.memory.type | string | The 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.
| Value | Description | Stability |
|---|---|---|
gc | CPU time spent performing garbage collection tasks. | |
idle | Available CPU time not spent executing any Go or Go runtime code. | |
scavenge | CPU time spent returning unused memory to the underlying platform. | |
user | CPU time spent running user Go code. |
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.
| Value | Description | Stability |
|---|---|---|
other | Memory used by the Go runtime, excluding other categories of memory usage described in this enumeration. | |
stack | Memory allocated from the heap that is reserved for stack space, whether or not it is currently in-use. [3] |
[3]: Computed from /memory/classes/heap/stacks:bytes.
Feedback
Was this page helpful?
Thank you. Your feedback is appreciated!
Please let us know how we can improve this page. Your feedback is appreciated!