-
Notifications
You must be signed in to change notification settings - Fork 90
chore(metrics): deprecate withMetricLogger in favor of withMetricsLogger #1060
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
Conversation
…MetricsUtils.withMetricsLogger closes aws-powertools#1059
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.
Please fix the infinite loop.
powertools-metrics/src/main/java/software/amazon/lambda/powertools/metrics/MetricsUtils.java
Outdated
Show resolved
Hide resolved
…ools/metrics/MetricsUtils.java Co-authored-by: Jérôme Van Der Linden <[email protected]>
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.
OK
powertools-metrics/src/main/java/software/amazon/lambda/powertools/metrics/MetricsUtils.java
Show resolved
Hide resolved
powertools-metrics/src/main/java/software/amazon/lambda/powertools/metrics/MetricsUtils.java
Show resolved
Hide resolved
.withMessage("Null dimension set not allowed"); | ||
} | ||
|
||
private void testWithNewLogger(Consumer<Consumer<MetricsLogger>> methodToTest) { |
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.
strange to name it NewLogger
when you use it with the deprecated one...
private void testWithNewLogger(Consumer<Consumer<MetricsLogger>> methodToTest) { | |
private void testLogger(Consumer<Consumer<MetricsLogger>> loggerToTest) { |
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.
New was as opposed to the default MetricsUtils.metricsLogger()
and MetricsUtils.withMetric(s)Logger
essentially providing new ones. However, happy to call it testLogger
instead to avoid any confusion
...tools-metrics/src/test/java/software/amazon/lambda/powertools/metrics/MetricsLoggerTest.java
Show resolved
Hide resolved
Any further things I might have missed? |
Issue #: #1059
Description of changes:
MetricsUtils.withMetricLogger
MetricsUtils.withMetricsLogger
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.