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

fix: cast dimension value to str to avoid issue where EMF silently fails #52

Merged
merged 4 commits into from Jun 2, 2020

Conversation

to-mc
Copy link
Contributor

@to-mc to-mc commented Jun 2, 2020

Issue #, if available: #51

Description of changes: If non-string values are passed to add_dimension, cast them to str.

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

@to-mc to-mc requested a review from heitorlessa June 2, 2020 16:09
@heitorlessa heitorlessa self-assigned this Jun 2, 2020
@heitorlessa heitorlessa merged commit 392d547 into develop Jun 2, 2020
@heitorlessa heitorlessa added the bug Something isn't working label Jun 3, 2020
@heitorlessa heitorlessa deleted the fix/dimension_types branch June 5, 2020 17:55
heitorlessa added a commit that referenced this pull request Jun 10, 2020
* develop:
  chore: plat wheels are not needed
  Fix Logger value coercion to main keys (#53)
  fix: cast dimension value to str to avoid issue where EMF silently fails (#52)
heitorlessa referenced this pull request in heitorlessa/aws-lambda-powertools-python Jun 17, 2020
…ils (#52)

* fix: cast dimension value to str to avoid issue where EMF silently fails to collect the metrics

* fix: correct type hint in fixture

* fix: remove surplus assertions and logic from new test

* chore: fix formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants