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

chore(metrics): deprecate withMetricLogger in favor of withMetricsLogger #1060

Merged
merged 5 commits into from
Feb 23, 2023

Conversation

humanzz
Copy link
Contributor

@humanzz humanzz commented Feb 20, 2023

Issue #: #1059

Description of changes:

  • deprecate MetricsUtils.withMetricLogger
  • introduce MetricsUtils.withMetricsLogger

Checklist

Breaking change checklist

RFC issue #:

  • Migration process documented
  • Implement warnings (if it can live side by side)

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

Copy link
Contributor

@jeromevdl jeromevdl left a 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.

…ools/metrics/MetricsUtils.java

Co-authored-by: Jérôme Van Der Linden <[email protected]>
jeromevdl
jeromevdl previously approved these changes Feb 21, 2023
Copy link
Contributor

@jeromevdl jeromevdl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

kozub
kozub previously approved these changes Feb 21, 2023
@humanzz humanzz dismissed stale reviews from kozub and jeromevdl via 8f0105b February 21, 2023 10:43
@pull-request-size pull-request-size bot added size/M and removed size/S labels Feb 21, 2023
@humanzz humanzz requested review from jeromevdl and kozub and removed request for jeromevdl and kozub February 21, 2023 10:45
.withMessage("Null dimension set not allowed");
}

private void testWithNewLogger(Consumer<Consumer<MetricsLogger>> methodToTest) {
Copy link
Contributor

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...

Suggested change
private void testWithNewLogger(Consumer<Consumer<MetricsLogger>> methodToTest) {
private void testLogger(Consumer<Consumer<MetricsLogger>> loggerToTest) {

Copy link
Contributor Author

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

@humanzz
Copy link
Contributor Author

humanzz commented Feb 22, 2023

Any further things I might have missed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants