-
Notifications
You must be signed in to change notification settings - Fork 488
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
[Feature]: STREAM_CARDINALITY_LIMIT should be config #1951
Comments
Thanks for reporting this. We are aware of this #1065 can be used for tracking. |
HI, How is it going~~ |
Working through a major refactoring of the Metrics sdk! A lot has been done to fix perf issues, but not yet reached the stage where we have addressed this issue. Though it is delayed, it is still the top feature that must be added in my mind! |
Update: I think its best to do the following for OTel Rust:
If all agree to this, we can make this happen for 0.26 release (~<2 weeks) |
That sounds reasonable. |
There is some movement in spec, so will check the spec status and re-update here: |
The spec is stable, I change my position about this. Here's the new proposal
|
1,2,4 will be added in 0.27.1 milestone. Its additive change only, and we are about to declare the Metrics API as RC tomorow, so this got lower priority. |
The now stable spec (https://github.com/open-telemetry/opentelemetry-specification/blob/v1.39.0/specification/metrics/sdk.md#cardinality-limits) now says that:
I totally understand that this is already accepted as a feature in general and tracked also via #1065. But @cijothomas since you removed the target milestone, could you kindly give a update if the capability to configure the cardinality limit would be targeting milestone 0.28 then or when it could be expected? |
@frittentheke Thanks for calling this out. Yes this is a miss from my side. I just added it to Metric SDK stable milestone, but hopefully we can do it in 0.28 itself. This is not only an important gap, but a blocker from going stable. |
Moving to 0.28, the plan is to remove the cardinality cap feature completely now, and add it back when we have View feature also stable. |
@cijothomas do you have a sense of the performance implications of removing this? One worry is that it would result in higher RAM requirements for those who would have hit the limit previously. |
Yes that is true. Without this feature in the SDK, there is practically no limit to the amount of memory Metric SDK can take up. This is a critical capability to be added back before 1.0 stable. Without the ability to configure the limit, it severely limits the usability also as 2000 default is not sufficient for many use cases; hence removed this for 0.28. |
Related Problems?
No response
Describe the solution you'd like:
I got some warning log like :
OpenTelemetry metrics error occurred. Metrics error: Warning: Maximum data points for metric stream exceeded. Entry added to overflow.
I use histogram and it has many labels , I find the log code here:
it should be config
Considered Alternatives
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: