-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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-37601] Remove Unirest dependency in PrometheusReporterTest #26387
base: master
Are you sure you want to change the base?
Conversation
Thanks for this contribution @r-sidd ! Library upgrade LGTM. However, since we only use Maybe we can consider instead removing the dependency on
A bit more verbose, but reduces dependencies when needed! |
Yea sure, does makes sense. Do you want me to make these changes in this PR itself? If so do let me know, will make the changes :) |
Hi @hlteoh37, thanks for the suggestion and the code, I've made the changes and pushed :) |
@r-sidd this last change looks good. Please could you amend the Jira and PR title and text to describe the problem you are now fixing. |
Yes sure, let me do that |
@davidradl I've updated the Jira and the PR details :) |
What is the purpose of the change
Remove Unirest dependency in PrometheusReporterTest
Brief change log
This change removes the dependency on the Unirest HTTP client library. Unirest was only used in PrometheusReporterTest for polling metrics. This commit replaces the single usage of Unirest.get() with the standard Java HttpClient, reducing external dependencies.
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: noDocumentation