Skip to content
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

Add validation for dimension values #131

Merged
merged 7 commits into from
Aug 23, 2022
Merged

Add validation for dimension values #131

merged 7 commits into from
Aug 23, 2022

Conversation

markkuhn
Copy link
Contributor

@markkuhn markkuhn commented Aug 17, 2022

Issue #, if available: #68

Related issues:

Description of changes:
Add function to strip non-ascii characters and stringify numbers for dimension values.

[UPDATE] Instead of silently dropping non-compliant characters, the client will now throw an error if an invalid dimension is found according to specifications here (breaking change).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@markkuhn markkuhn changed the title Fix #68 Add function to strip non-ascii and stringify numbers for dimension values Aug 17, 2022
@markkuhn markkuhn changed the title Add function to strip non-ascii and stringify numbers for dimension values Add validation for dimension values Aug 17, 2022
@markkuhn markkuhn self-assigned this Aug 17, 2022
Copy link
Member

@gordonpn gordonpn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

markkuhn referenced this pull request in awslabs/aws-embedded-metrics-python Aug 18, 2022
@markkuhn markkuhn added the enhancement New feature or request label Aug 18, 2022
src/logger/MetricsContext.ts Outdated Show resolved Hide resolved
src/logger/MetricsContext.ts Outdated Show resolved Hide resolved
@markkuhn markkuhn requested review from gordonpn, johnjang, giancarlokc and Himtanaya and removed request for Himtanaya August 19, 2022 18:54
@markkuhn markkuhn merged commit 5e89620 into awslabs:master Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants