-
Notifications
You must be signed in to change notification settings - Fork 412
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
refactor(metrics): move from protocol to ABC; split provider tests #2934
refactor(metrics): move from protocol to ABC; split provider tests #2934
Conversation
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.
peer review comments
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## develop #2934 +/- ##
===========================================
+ Coverage 96.34% 96.44% +0.10%
===========================================
Files 169 171 +2
Lines 7678 7685 +7
Branches 1451 1452 +1
===========================================
+ Hits 7397 7412 +15
+ Misses 222 218 -4
+ Partials 59 55 -4
☔ View full report in Codecov by Sentry. |
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.
Almost there, I promise! log_metrics
is incorrect, and I think there's some leftover from the Protocol implementation within tests.
aws_lambda_powertools/metrics/provider/cloudwatch_emf/cloudwatch.py
Outdated
Show resolved
Hide resolved
Quick patch to type CloudWatch EMF Output, it's an old old tech debt I always wanted to pay ever since we added typing extensions -- this will make asserting on tests easier too (and for customers!). |
I applied this patch and addressed all feedback. Can you review it, please? |
checking 👀 ! |
aws_lambda_powertools/metrics/provider/cloudwatch_emf/cloudwatch.py
Outdated
Show resolved
Hide resolved
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.
last changes as we luckily don't need those extra bits in testing ;)
Kudos, SonarCloud Quality Gate passed! |
Issue number: #2916
Summary
Changes
This PR addresses the latest issues before we add the Datadog Metrics provider. There are no changes for the customer or even experience, this just fixes internal things.
User experience
Checklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change?
RFC issue number:
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.