@Configuration(proxyBeanMethods=false) @AutoConfigureAfter(value={MetricsAutoConfiguration.class,CompositeMeterRegistryAutoConfiguration.class,SimpleMetricsExportAutoConfiguration.class}) @ConditionalOnBean(value=io.micrometer.core.instrument.MeterRegistry.class) @ConditionalOnClass(value={graphql.GraphQL.class,org.springframework.graphql.execution.GraphQlSource.class}) @EnableConfigurationProperties(value=MetricsProperties.class) public class GraphQlMetricsAutoConfiguration extends Object
Auto-configuration
for instrumentation of Spring
GraphQL endpoints.Constructor and Description |
---|
GraphQlMetricsAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
GraphQlMetricsInstrumentation |
graphQlMetricsInstrumentation(io.micrometer.core.instrument.MeterRegistry meterRegistry,
GraphQlTagsProvider tagsProvider,
MetricsProperties properties) |
DefaultGraphQlTagsProvider |
graphQlTagsProvider(ObjectProvider<GraphQlTagsContributor> contributors) |
@Bean @ConditionalOnMissingBean(value=GraphQlTagsProvider.class) public DefaultGraphQlTagsProvider graphQlTagsProvider(ObjectProvider<GraphQlTagsContributor> contributors)
@Bean public GraphQlMetricsInstrumentation graphQlMetricsInstrumentation(io.micrometer.core.instrument.MeterRegistry meterRegistry, GraphQlTagsProvider tagsProvider, MetricsProperties properties)