Skip to content

Feature request: Increase maximum number of metrics dimension from 10 to 30 #1044

Closed
@ijemmy

Description

@ijemmy

Summary

Increase maximum number of metrics dimension from 10 to 30

Bug description

CloudWatch Metrics has increase maximum number of dimensions from 10 to 30 ref.

Currently, metrics utility throws an error when user try to add more than 10 dimension. This should be updated to 30.

Note: Powertools for Python is having the same change in this issue. Note that we DO NOT consider this as breaking change. (See that issue discussion on this)

Expected Behavior

Clients should be able to add up to 30 dimensions before throwing an error.

Current Behavior

Adding more than 10 dimensions will throw an error.

Possible Solution

You can find the relevant code to update in this search.

Required changes are:

  1. Update MAX_DIMENSION_COUNT variable from 9 to 29
  2. Update related unit tests

Steps to Reproduce

Call metrics.addDimension() more then 10 times. See this test case for example.

Environment

  • Powertools version used: all
  • Packaging format (Layers, npm): npm
  • AWS Lambda function runtime: all runtimes
  • Debugging logs: n/a

Related issues, RFCs

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been merged/shippedfeature-requestThis item refers to a feature request for an existing or new utilitygood-first-issueSomething that is suitable for those who want to start contributingmetricsThis item relates to the Metrics Utility

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions