Skip to content

Feature request: Warn users when adding multiple values to dimension before flushing #5638

Closed

Description

@leandrodamascena

Use case

Original issue in TypeScript: aws-powertools/powertools-lambda-typescript#3350

When a user adds multiple values to a single dimension before flushing metrics, only the last value set on the dimension wins.

Solution/User Experience

It would be nice if the metrics object would do a warnings.warning when multiple distinct values are used on a single dimension before flushing. Current behavior uses the last value added to the dimension.

Alternative solutions

Acknowledgment

Activity

  1. leandrodamascena commented on Nov 25, 2024

    @leandrodamascena
    ContributorAuthor

    Assigning to @anafalcao

  2. added and removed
    triagePending triage from maintainers
    on Nov 25, 2024
  3. github-actions commented on Nov 26, 2024

    @github-actions
    Contributor

    ⚠️COMMENT VISIBILITY WARNING⚠️

    This issue is now closed. Please be mindful that future comments are hard for our team to see.

    If you need more assistance, please either tag a team member or open a new issue that references this one.

    If you wish to keep having a conversation with other community members under this issue feel free to do so.

  4. github-actions commented on Dec 20, 2024

    @github-actions
    Contributor

    This is now released under 3.4.0 version!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions