-
Notifications
You must be signed in to change notification settings - Fork 402
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
feat: add metrics metadata #81
feat: add metrics metadata #81
Conversation
* develop: docs: customize contributing guide (#77) chore: move blockquotes as hidden comments
Signed-off-by: heitorlessa <[email protected]>
* develop: chore: remove deprecated code before GA (#78)
Signed-off-by: heitorlessa <[email protected]>
Codecov Report
@@ Coverage Diff @@
## develop #81 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 17 17
Lines 469 474 +5
Branches 41 42 +1
=========================================
+ Hits 469 474 +5
Continue to review full report at Codecov.
|
Addressed your feedback @cakepietoast that we chatted privately on adding a test for |
* develop: chore: cleanup tests (#79)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now!
…tools-python into develop * 'develop' of https://github.com/awslabs/aws-lambda-powertools-python: (104 commits) feat: add metrics metadata (#81) chore: cleanup tests (#79) chore: remove deprecated code before GA (#78) docs: customize contributing guide (#77) chore: move blockquotes as hidden comments chore: update CHANGELOG chore: bump version to 0.11.0 (#76) chore: version bump 0.10.1 fix: default dimension creation now happens when metrics are serialized instead of on metrics constructor (#74) fix: default dimension creation now happens when metrics are serialized instead of on metrics constructor (#74) docs: fix contrast on highlighted code text (#73) feat: improve error handling for log_metrics decorator (#71) chore(deps): bump graphql-playground-html from 1.6.19 to 1.6.25 in /docs feat: add high level imports (#70) fix: correct env var name for publish to pypi test (#69) chore: version bump (#68) feat: add capture_cold_start_metric for log_metrics (#67) chore(deps): bump websocket-extensions from 0.1.3 to 0.1.4 in /docs (#66) feat: automate publishing to pypi (#58) feat: add pre-commit hooks (#64) ...
Issue #, if available: #80
Description of changes:
Add support to high cardinal data as metadata in Metrics object.
Exerpt output in CloudWatch Logs
```json:title=cloudwatch_logs.json { "SuccessfulBooking": 1.0, "_aws": { "Timestamp": 1592234975665, "CloudWatchMetrics": [ { "Namespace": "ExampleApplication", "Dimensions": [ [ "service" ] ], "Metrics": [ { "Name": "SuccessfulBooking", "Unit": "Count" } ] } ] }, "service": "booking", "booking_id": "booking_uuid" // highlight-line } ```Docs
Checklist
Breaking change checklist
RFC issue #:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.