Skip to content

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

Closed
@leandrodamascena

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

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions