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. added
    feature-request
    triage
    on Nov 24, 2024
  2. leandrodamascena commented on Nov 25, 2024

    @leandrodamascena
    ContributorAuthor

    Assigning to @anafalcao

  3. added and removed
    triage
    on Nov 25, 2024
  4. 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.

  5. added
    pending-release
    on Nov 26, 2024
  6. github-actions commented on Dec 20, 2024

    @github-actions
    Contributor

    This is now released under 3.4.0 version!

  7. removed
    pending-release
    on Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature-requestmetrics

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions