[sdk-metrics] Implement experimenal cardinality limit specification #4095
Labels
feature-request
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
Is your feature request related to a problem? Please describe.
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.
Describe the solution you'd like
Implement cardinality limits.
Additional context
The text was updated successfully, but these errors were encountered: