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

Fix classNotFoundException when using old version of io.micrometer:mi… #957

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

echemezov
Copy link
Contributor

Classes io.micrometer.core.instrument.binder.grpc.MetricCollectingServerInterceptor and io.micrometer.core.instrument.binder.grpc.MetricCollectingClientInterceptor are not available in old versions of io.micrometer:micrometer-core (for example in 1.5.1) but io.micrometer.core.instrument.MeterRegistry used as a condition for GrpcClientMetricAutoConfiguration and GrpcServerMetricAutoConfiguration exists.

In result, application fails on start with ClassNotFoundException when there is MeterRegistry but no grpc interceptor classes.

@yidongnan yidongnan added this to the 2.15.0 milestone Sep 26, 2023
Copy link
Collaborator

@yidongnan yidongnan left a comment

Choose a reason for hiding this comment

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

LGTM

@yidongnan yidongnan merged commit bb38a6a into grpc-ecosystem:master Sep 26, 2023
2 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.

2 participants