opentelemetry-rust icon indicating copy to clipboard operation
opentelemetry-rust copied to clipboard

[Feature]: STREAM_CARDINALITY_LIMIT should be config

Open domyway opened this issue 7 months ago • 7 comments

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

domyway avatar Jul 22 '24 07:07 domyway