-
Notifications
You must be signed in to change notification settings - Fork 773
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
Promote cardinality limit view API from experimental to stable #5444
Comments
@CodeBlanch is this likely to make it into an upcoming release? We have severe memory issues with metrics due to needing high cardinality (for compatibility) on a single metric. Unless I'm mistaken, there's not a per-metric way to set higher cardinality until this lands and no current packages expose it, so we're in a tough spot on options here. Knowing where this stands would help me figure out timelines on options to unblock the next release for App Service. |
@CodeBlanch This should require no spec support, given we already support cardinality limit on MP, so adding it per Metric should be continuation of that. The current default behavior of drop-when-limit can be continued. For folding overflow into the special overflow bucket - requires spec change. |
@CodeBlanch @cijothomas Checking in since the global limit is costing us an extra 11 terabytes of memory at all times. When do we expect to land this at a more granular level? Or is that already the case and this issue is behind current status? |
@NickCraver The status is still the same, the API is not part of stable release yet. Unfortunately, no firm ETA for that as well, given there is some spec dependency (though it can be argued that the spec dependency can be ignored if the overflow behavior is just drop). |
open-telemetry/opentelemetry-specification#3904 Spec issue tracking this. |
@cijothomas I could be misunderstanding the current state - isn't the behavior currently/already drop and log? I'm trying to understand how the spec for what to do when exceeding the limit is a blocker for setting the limit, can't the latter come before, with the former being further enhancement or refinement? It seems like they're related but orthogonal concerns we could parallel. |
You are right! Also experimental is the ability to set cardinality on a per metric basis (using Views). This can be stabilized with the default behavior of dropping, and opt-in behavior to put into overflow bucket. Once spec is stabilized, this can be changed to default to overflow. But I believe the desire (based on what I gather from a community call few months ago!) is to do both together, to make the transition smoother. |
Update... The spec is now stable so we should be able to promote our API to stable (remove experimental API stuff). open-telemetry/opentelemetry-specification#4222 [edit] For anyone who wants to pick this up, here is a previous PR which promoted something to stable which can be used as a sort of guide for how to do it: #5607 |
I'd like to take this one. |
@xiang17 Can you confirm that you will take care of promoting the per metric cardinality limit to stable and also, remove the need for OTEL_DOTNET_EXPERIMENTAL_METRICS_EMIT_OVERFLOW_ATTRIBUTE env variable? |
@cijothomas Yes I'll do that as well. It's tracked in this issue: #5641. |
We have an experimental api now for setting cardinality limit via the view api (see: #5312 & #5328).
This issue is for tracking making this a stable feature.
The text was updated successfully, but these errors were encountered: