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

Add missing metrics coverage and ensure proper coverage of future metrics in gRPC #2818

Merged
merged 10 commits into from
Mar 4, 2021
Merged

Conversation

tjquinno
Copy link
Member

@tjquinno tjquinno commented Feb 27, 2021

Resolves #2694

This PR adds support for some metrics annotations that are not currently handled in gRPC. It also reworks some of the gRPC code related to metrics to be data-driven as much as possible to simplify adding proper support for future metrics (should they ever appear).

It also adds tests to help verify that the gRPC code handles all the metrics annotations corresponding to the MP metric types (except those we explicitly exclude because we don't support them).

A new README.md describes the steps needed to add support for a new metric in gRPC.

I've done my best to make these changes consistent with what gRPC was already doing. I'll rely on the reviewers to make sure the changes are correct and complete.

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
@tjquinno tjquinno self-assigned this Feb 27, 2021
Copy link
Collaborator

@aseovic aseovic left a comment

Choose a reason for hiding this comment

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

Looks great! Really like the refactoring to use functions for metric attributes, removes a lot of instance of nonsense that we had 👍

@tjquinno tjquinno merged commit 5105847 into helidon-io:master Mar 4, 2021
@tjquinno tjquinno deleted the grpc-fix branch March 4, 2021 19:14
paulparkinson pushed a commit that referenced this pull request Mar 29, 2021
…rics in gRPC (#2818)

* grpc metrics fix

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
aseovic pushed a commit to aseovic/helidon that referenced this pull request Apr 26, 2021
…rics in gRPC (helidon-io#2818)

* grpc metrics fix

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
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.

gRPC metrics code replicates logic in metrics component and is possibly out-of-date
3 participants