@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) public class GrpcServerMetricAutoConfiguration extends Object
Constructor and Description |
---|
GrpcServerMetricAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
collectMethodNamesForService(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<BindableService> services) |
@GrpcGlobalServerInterceptor @Order(value=2500) @ConditionalOnMissingBean public io.micrometer.core.instrument.binder.grpc.MetricCollectingServerInterceptor metricCollectingServerInterceptor(io.micrometer.core.instrument.MeterRegistry registry, Collection<BindableService> services)
protected List<String> collectMethodNamesForService(ServiceDescriptor serviceDescriptor)
serviceDescriptor
- The service descriptor to get the names from.