awslabs / aws-embedded-metrics-node

Amazon CloudWatch Embedded Metric Format Client Library
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format.html
Apache License 2.0
252 stars 35 forks source link

Add validation for dimension values #131

Closed markkuhn closed 2 years ago

markkuhn commented 2 years ago

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.