Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pichlermarc opened this issue Aug 30, 2023 · 0 comments
Open
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

Comments

@pichlermarc
Copy link
Member

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

@pichlermarc pichlermarc added feature-request never-stale spec-feature This is a request to implement a new feature which is already specified by the OTel specification sdk:metrics Issues and PRs related to the Metrics SDK pkg:sdk-metrics labels Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant