Skip to content

[feature request] Better handling of cardinality limits #6817

@ManickaP

Description

@ManickaP

Package

None

Is your feature request related to a problem?

Based on the code:
https://github.com/open-telemetry/opentelemetry-dotnet/blame/main/src/OpenTelemetry/Metrics/AggregatorStore.cs#L487
it looks like the cardinality limit preserve the first values instead of the newest. For more context see discussion in dotnet/runtime#122752 (comment)

The original problem is reported in Azure/azure-sdk-for-net#52674

What is the expected behavior?

Cardinality limit should preserve the most recent values.

Which alternative solutions or features have you considered?

Additional context

No response

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions