forked from aws-powertools/powertools-lambda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve error handling for log_metrics decorator (#71)
* feat: dont throw exception by default from log_metrics if no metrics are emitted * docs: update details for change to error handling * chore: rename parameter for clarity * fix: correct bug in exception handling from previous commits add raise_on_empty_metrics param to partial func call revert mistake in change to test for exception propagation * improv: change log debug statement to warning when no metrics are present * docs: add note on suppressing warning for empty metric set * improv: add warning for manual serialization Signed-off-by: heitorlessa <[email protected]> * improv: whitespace and warning supress as info Signed-off-by: heitorlessa <[email protected]> Co-authored-by: heitorlessa <[email protected]>
- Loading branch information
1 parent
644240b
commit 6173521
Showing
3 changed files
with
66 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters