opentelemetry-rust
opentelemetry-rust copied to clipboard
[Feature]: STREAM_CARDINALITY_LIMIT should be config
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:
pub(crate) fn is_under_cardinality_limit(size: usize) -> bool {
size < STREAM_CARDINALITY_LIMIT as usize - 1
}
it should be config
Considered Alternatives
No response
Additional Context
No response