@Configuration @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.
|
MetricCollectingServerInterceptor |
metricCollectingServerInterceptor(MeterRegistry registry,
Collection<BindableService> services) |
@Bean @ConditionalOnMissingBean public MetricCollectingServerInterceptor metricCollectingServerInterceptor(MeterRegistry registry, Collection<BindableService> services)
protected List<String> collectMethodNamesForService(ServiceDescriptor serviceDescriptor)
serviceDescriptor
- The service descriptor to get the names from.