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

Minor gRPC fixes (2.0) #1951

Merged
merged 2 commits into from
Jun 9, 2020
Merged

Minor gRPC fixes (2.0) #1951

merged 2 commits into from
Jun 9, 2020

Conversation

aseovic
Copy link
Collaborator

@aseovic aseovic commented Jun 9, 2020

Minor gRPC metrics cleanup and fix for Channel injection

Copy link
Member

@tjquinno tjquinno left a comment

Choose a reason for hiding this comment

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

The changes to MetricsSupport look fine to me. Please see my question about not replacing the counter.

Comment on lines +73 to +79
VENDOR_REGISTRY.meter(org.eclipse.microprofile.metrics.Metadata.builder()
.withName("grpc.requests.meter")
.withDisplayName("Meter for overall gRPC requests")
.withDescription("Each gRPC request will mark the meter to see overall throughput")
.withType(MetricType.METERED)
.withUnit(MetricUnits.NONE)
.build());
Copy link
Member

Choose a reason for hiding this comment

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

I see that this takes the place of the meter that used to be registered in MetricsSupport. There is no replacement here for the counter that MetricsSupport used to register. Is that intentional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes -- meter already has a counter, so having a separate counter is a bit pointless.

@tjquinno tjquinno merged commit c30057f into helidon-io:master Jun 9, 2020
tjquinno added a commit that referenced this pull request Jun 9, 2020
tjquinno added a commit that referenced this pull request Jun 9, 2020
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.

2 participants