본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Go

원문 보기 위키 갱신

This document defines Go related attributes.

출처: 문서

본문

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.