@Configuration(proxyBeanMethods=false) @AutoConfigureAfter(value=org.springframework.boot.actuate.autoconfigure.metrics.CompositeMeterRegistryAutoConfiguration.class) @AutoConfigureBefore(value=GrpcServerAutoConfiguration.class) @ConditionalOnBean(value=io.micrometer.core.instrument.MeterRegistry.class) @ConditionalOnClass(value=io.micrometer.core.instrument.binder.grpc.MetricCollectingServerInterceptor.class) public class GrpcServerMetricAutoConfiguration extends Object
Constructor and Description |
---|
GrpcServerMetricAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
collectMethodNamesForService(io.grpc.ServiceDescriptor serviceDescriptor)
Gets all method names from the given service descriptor.
|
io.micrometer.core.instrument.binder.grpc.MetricCollectingServerInterceptor |
metricCollectingServerInterceptor(io.micrometer.core.instrument.MeterRegistry registry,
Collection<io.grpc.BindableService> services) |
@GrpcGlobalServerInterceptor @Order(value=2500) @ConditionalOnMissingBean public io.micrometer.core.instrument.binder.grpc.MetricCollectingServerInterceptor metricCollectingServerInterceptor(io.micrometer.core.instrument.MeterRegistry registry, Collection<io.grpc.BindableService> services)
protected List<String> collectMethodNamesForService(io.grpc.ServiceDescriptor serviceDescriptor)
serviceDescriptor
- The service descriptor to get the names from.