Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ijemmy opened this issue Aug 4, 2022 · 4 comments · Fixed by #1072
Closed

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

ijemmy opened this issue Aug 4, 2022 · 4 comments · Fixed by #1072
Assignees
Labels
completed This item is complete and has been merged/shipped feature-request This item refers to a feature request for an existing or new utility good-first-issue Something that is suitable for those who want to start contributing metrics This item relates to the Metrics Utility

Comments

@ijemmy
Copy link
Contributor

ijemmy commented Aug 4, 2022

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

@ijemmy ijemmy added bug Something isn't working good-first-issue Something that is suitable for those who want to start contributing triage This item has not been triaged by a maintainer, please wait metrics This item relates to the Metrics Utility labels Aug 4, 2022
@sthuber90
Copy link
Contributor

Happy to take over this task

@dreamorosi
Copy link
Contributor

Hi @sthuber90 thanks for commenting under the issue.

Based on the description above the change should involve both the Metric class & unit tests, not sure yet about integration tests. Do you need any additional info/support in defining the scope of the feature?

I'll assign the issue to you and I'll be happy to help with reviewing the PR once it's opened.

@sthuber90
Copy link
Contributor

Thank you very much. I will try to work out a minimal PR and look into whether integration tests make sense for this feature. All in all, it really seems like a good first issue and easy to start with :)

@dreamorosi dreamorosi removed the triage This item has not been triaged by a maintainer, please wait label Aug 23, 2022
@dreamorosi dreamorosi linked a pull request Aug 23, 2022 that will close this issue
10 tasks
@github-actions
Copy link
Contributor

⚠️ COMMENT VISIBILITY WARNING ⚠️

Comments on closed issues 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.

@github-actions github-actions bot added the pending-release This item has been merged and will be released soon label Aug 23, 2022
@dreamorosi dreamorosi changed the title Bug (metrics): Increase maximum number of metrics dimension from 10 to 30 Feature request: Increase maximum number of metrics dimension from 10 to 30 Nov 14, 2022
@dreamorosi dreamorosi added feature-request This item refers to a feature request for an existing or new utility completed This item is complete and has been merged/shipped and removed bug Something isn't working pending-release This item has been merged and will be released soon labels Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed This item is complete and has been merged/shipped feature-request This item refers to a feature request for an existing or new utility good-first-issue Something that is suitable for those who want to start contributing metrics This item relates to the Metrics Utility
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants