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
[FLINK-25608][metrics] Annotate metrics classes with Public(Evolving) #18325
Conversation
@zentol I extracted the metrics API annotations to a separate ticket please have another look. |
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 549e1b1 (Tue Jan 11 09:44:40 UTC 2022) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
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.
How did you decide which classes should be public? I see that Metric
and all extending interfaces are Public
, yet View
isn't despite being an extension for metrics.
Why are the reporter interfaces not annotated?
Good question, I mainly went through the metrics classes relevant for connectors. Do you think all classes inside the |
All interfaces + the |
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.
I went through all the metrics classes and added the proper annotation. Thanks for your help.
/** | ||
* Extension for metric groups that support logical scopes. | ||
* | ||
* <p>ATTENTION: This interface is *not* meant for the long-term; it merely removes the need for | ||
* reporters to depend on flink-runtime in order to access the logical scope. Once the logical scope | ||
* is properly exposed this interface *will* be removed. | ||
*/ | ||
@Public |
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.
@zentol can you confirm this annotation?
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.
yes this should be fine. While we do intend to drop it in 2.0, until then it should remain stable.
@flinkbot run azure |
What is the purpose of the change
Our metrics classes are already treated as if they are public. This PR annotates the bases classes with
@Public
and the metrics helper exposed to the connectors with@PublicEvolving
. We also fix some of our arch unit test by introducing the annotationsThe change was initially required by #18302.
Brief change log
Verifying this change
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no)Documentation