-
Notifications
You must be signed in to change notification settings - Fork 1k
[sdk-metrics] Implement experimenal cardinality limit specification #4095
Copy link
Copy link
Closed
Labels
needs:code-contributionThis feature/bug is ready to implementThis feature/bug is ready to implementnever-stalepkg:sdk-metricssdk:metricsIssues and PRs related to the Metrics SDKIssues and PRs related to the Metrics SDKspec-featureThis is a request to implement a new feature which is already specified by the OTel specificationThis is a request to implement a new feature which is already specified by the OTel specificationtype:featureA feature with no sub-issues to addressA feature with no sub-issues to address
Metadata
Metadata
Assignees
Labels
needs:code-contributionThis feature/bug is ready to implementThis feature/bug is ready to implementnever-stalepkg:sdk-metricssdk:metricsIssues and PRs related to the Metrics SDKIssues and PRs related to the Metrics SDKspec-featureThis is a request to implement a new feature which is already specified by the OTel specificationThis is a request to implement a new feature which is already specified by the OTel specificationtype:featureA feature with no sub-issues to addressA 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