Skip to content

[sdk-metrics] Implement experimenal cardinality limit specification #4095

@pichlermarc

Description

@pichlermarc

Description

Currently, metrics will allocate one metric stream per attribute configuration, which means that a single attribute with an unbounded amount of values can cause a memory leak.

The Metrics SDK specification defines experimental cardinality limits that SDKs can implement. These limits allow us to forget stale metric streams.

This issue is considered done when

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs:code-contributionThis feature/bug is ready to implementnever-stalepkg:sdk-metricssdk:metricsIssues and PRs related to the Metrics SDKspec-featureThis is a request to implement a new feature which is already specified by the OTel specificationtype:featureA feature with no sub-issues to address

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions