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

[#640] feat(netty): Metric system for netty server #1041

Merged
merged 3 commits into from
Jul 28, 2023

Conversation

xumanbu
Copy link
Contributor

@xumanbu xumanbu commented Jul 26, 2023

What changes were proposed in this pull request?

add NettyMetrics for StreamSever

Why are the changes needed?

Fix: #640

Does this PR introduce any user-facing change?

No.

How was this patch tested?

UT

@jerqi jerqi changed the title [#640] feat(netty):metric system for netty server [#640] feat(netty): Metric system for netty server Jul 26, 2023
@jerqi jerqi requested a review from leixm July 26, 2023 09:36
@jerqi
Copy link
Contributor

jerqi commented Jul 26, 2023

@leixm Could you help me review this pr?

@leixm
Copy link
Contributor

leixm commented Jul 27, 2023

@leixm Could you help me review this pr?

Sure.

}

public void incRequest(String className) {
if (isRegistered) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we reuse RPCMetrics#incCounter? seems same code logic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good advice.

}

public void decRequest(String className) {
if (isRegistered) {
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix it.

@jerqi jerqi requested a review from leixm July 27, 2023 13:11
@leixm
Copy link
Contributor

leixm commented Jul 28, 2023

+1 LGTM.

Copy link
Contributor

@jerqi jerqi left a comment

Choose a reason for hiding this comment

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

LGTM.

@jerqi jerqi merged commit a5ba479 into apache:master Jul 28, 2023
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Subtask] [Netty] Metrics system
3 participants