You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| <aid="cpython-gc-generation"href="#cpython-gc-generation">`cpython.gc.generation`</a> |string|Name of the garbage collector collection generation. |`gen0`; `gen1`; `gen2`||
12
+
| <aid="cpython-gc-generation"href="#cpython-gc-generation">`cpython.gc.generation`</a> |int|Value of the garbage collector collection generation. |`0`; `1`; `2`||
13
13
14
14
---
15
15
16
16
`cpython.gc.generation` 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.
|[`cpython.gc.generation`](/docs/attributes-registry/cpython.md)|string|Name of the garbage collector collection generation. |`gen0`; `gen1`; `gen2`|`Required`||
45
+
|[`cpython.gc.generation`](/docs/attributes-registry/cpython.md)|int|Value of the garbage collector collection generation. |`0`; `1`; `2`|`Required`||
46
46
47
47
---
48
48
49
49
`cpython.gc.generation` 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.
|`cpython.gc.collected.objects`| Counter |`{object}`| The total number of objects collected inside a generation that have occurred since interpreter start. [1]||
75
+
|`cpython.gc.collected_objects`| Counter |`{object}`| The total number of objects collected inside a generation that have occurred since interpreter start. [1]||
76
76
77
77
**[1]:** This metric reports data from [`gc.stats()`](https://docs.python.org/3/library/gc.html#gc.get_stats)
|[`cpython.gc.generation`](/docs/attributes-registry/cpython.md)|string|Name of the garbage collector collection generation. |`gen0`; `gen1`; `gen2`|`Required`||
81
+
|[`cpython.gc.generation`](/docs/attributes-registry/cpython.md)|int|Value of the garbage collector collection generation. |`0`; `1`; `2`|`Required`||
82
82
83
83
---
84
84
85
85
`cpython.gc.generation` 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.
|`cpython.gc.uncollectable.objects`| Counter |`{object}`| The total number of uncollectable objects inside a generation that have occurred since interpreter start. [1]||
111
+
|`cpython.gc.uncollectable_objects`| Counter |`{object}`| The total number of uncollectable objects inside a generation that have occurred since interpreter start. [1]||
112
112
113
113
**[1]:** This metric reports data from [`gc.stats()`](https://docs.python.org/3/library/gc.html#gc.get_stats)
|[`cpython.gc.generation`](/docs/attributes-registry/cpython.md)|string|Name of the garbage collector collection generation. |`gen0`; `gen1`; `gen2`|`Required`||
117
+
|[`cpython.gc.generation`](/docs/attributes-registry/cpython.md)|int|Value of the garbage collector collection generation. |`0`; `1`; `2`|`Required`||
118
118
119
119
---
120
120
121
121
`cpython.gc.generation` 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.
0 commit comments