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

CPython 런타임 메트릭을 위한 시맨틱 컨벤션

원문 보기 위키 갱신

OpenTelemetry에서 CPython 런타임 메트릭에 대한 시맨틱 컨벤션을 설명하는 문서예요.

출처: 문서

본문

이 문서는 OpenTelemetry에서 CPython Runtime 메트릭에 대한 시맨틱 컨벤션을 설명해요.

  • CPython garbage collection

  • Metric: cpython.gc.collections

  • Metric: cpython.gc.collected_objects

  • Metric: cpython.gc.uncollectable_objects

CPython garbage collection

Description: cpython.gc.* 네임스페이스 아래 캡처되는, 가비지 컬렉션과 관련된 CPython 메트릭이에요.

Metric: cpython.gc.collections

이 메트릭은 권장돼요(recommended).

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| cpython.gc.collections | Counter | {collection} | 인터프리터 시작 이후 세대(generation)가 수집된 횟수예요. [1] | |

[1]: 이 메트릭은 gc.stats()의 데이터를 보고해요.

속성:

| Key | Stability | Requirement Level | Value Type | Description | Example Values

| cpython.gc.generation | | Required | int | 가비지 컬렉터 컬렉션 세대(generation)의 값이에요. | 0; 1; 2

cpython.gc.generation은 다음과 같은 잘 알려진 값 목록을 가져요. 그중 하나가 적용된다면 해당 값을 반드시(MUST) 사용해야 하고, 그렇지 않으면 사용자 정의 값(custom value)을 사용할 수 있어요(MAY).

| Value | Description | Stability

| 0 | Generation 0 |

| 1 | Generation 1 |

| 2 | Generation 2 |

Metric: cpython.gc.collected_objects

이 메트릭은 권장돼요(recommended).

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| cpython.gc.collected_objects | Counter | {object} | 인터프리터 시작 이후 세대(generation) 안에서 수집된 객체의 총 개수예요. [1] | |

[1]: 이 메트릭은 gc.stats()의 데이터를 보고해요.

속성:

| Key | Stability | Requirement Level | Value Type | Description | Example Values

| cpython.gc.generation | | Required | int | 가비지 컬렉터 컬렉션 세대(generation)의 값이에요. | 0; 1; 2

cpython.gc.generation은 다음과 같은 잘 알려진 값 목록을 가져요. 그중 하나가 적용된다면 해당 값을 반드시(MUST) 사용해야 하고, 그렇지 않으면 사용자 정의 값(custom value)을 사용할 수 있어요(MAY).

| Value | Description | Stability

| 0 | Generation 0 |

| 1 | Generation 1 |

| 2 | Generation 2 |

Metric: cpython.gc.uncollectable_objects

이 메트릭은 권장돼요(recommended).

| Name | Instrument Type | Unit (UCUM) | Description | Stability | Entity Associations

| cpython.gc.uncollectable_objects | Counter | {object} | 인터프리터 시작 이후 세대(generation) 안에서 수집할 수 없는(uncollectable) 것으로 밝혀진 객체의 총 개수예요. [1] | |

[1]: 이 메트릭은 gc.stats()의 데이터를 보고해요.

속성:

| Key | Stability | Requirement Level | Value Type | Description | Example Values

| cpython.gc.generation | | Required | int | 가비지 컬렉터 컬렉션 세대(generation)의 값이에요. | 0; 1; 2

cpython.gc.generation은 다음과 같은 잘 알려진 값 목록을 가져요. 그중 하나가 적용된다면 해당 값을 반드시(MUST) 사용해야 하고, 그렇지 않으면 사용자 정의 값(custom value)을 사용할 수 있어요(MAY).

| Value | Description | Stability

| 0 | Generation 0 |

| 1 | Generation 1 |

| 2 | Generation 2 |

더 알아보기 (Learn more)