Skip to content

Add the cpython gc object statistics #3649

@david-gang

Description

@david-gang

What problem do you want to solve?

The following metrics which are incubating: https://github.com/open-telemetry/opentelemetry-python/blob/main/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/metrics/cpython_metrics.py
should be added

cpython.gc.collected_objects
cpython.gc.uncollectable_objects

Describe the solution you'd like

Just add the metrics to https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-system-metrics

Describe alternatives you've considered

I don't think an alternative exists

Additional Context

I had this in prometheus and it was quite handy

Would you like to implement a fix?

Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions