You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a dimension to my metrics, I should get a warning if the dimension value is invalid aka an empty string ("") or None, and the dimension should not be added to the EMF blobs emitted by the utility.
Current Behaviour
Currently the utility doesn't validate the input and generates an EMF blob with the invalid dimension.
Expected Behaviour
When adding a dimension to my metrics, I should get a warning if the dimension value is invalid aka an empty string (
""
) orNone
, and the dimension should not be added to the EMF blobs emitted by the utility.Current Behaviour
Currently the utility doesn't validate the input and generates an EMF blob with the invalid dimension.
Code snippet
Possible Solution
We should: 1/ validate the input when adding a dimension, 2/ emit a warning if invalid, and 3/ don't add the dimension to the EMF blob
Steps to Reproduce
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.8
Packaging format used
PyPi
Debugging logs
The text was updated successfully, but these errors were encountered: