[sdk-metrics] Implement experimenal cardinality limit specification #4095
Labels
needs:code-contribution
This feature/bug is ready to implement
never-stale
pkg:sdk-metrics
sdk:metrics
Issues and PRs related to the Metrics SDK
spec-feature
This is a request to implement a new feature which is already specified by the OTel specification
type:feature
A feature with no sub-issues to address
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
The text was updated successfully, but these errors were encountered: