Skip to content

custom overflowSet in metrics aggregate #6940

Open
@timannguyen

Description

@timannguyen

Problem Statement

A clear and concise description of what the problem is.
Ex. I'm always frustrated when [...]

when I set cardinality limit with OTEL_GO_X_CARDINALITY_LIMIT, there is no means to set the default attr for the overflow set.

https://github.com/open-telemetry/opentelemetry-go/blob/main/sdk/metric/internal/aggregate/limit.go#L11

Proposed Solution

To implement a set function to update the overflowSet

Alternatives

No alternative when cardinality is limited

Prior Art

N/A

Additional Context

When data is ingested into splunk, the search would ignore metrics that do not have those attributes when queried. By setting attributes as empty string or default value instead of not having them, Splunk will include the overflow set as part of the query when aggregating or searching metrics.

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