Browse Source

removes @ConditionalOnEnabledGlobalFilter from metrics

pull/1961/head
spencergibb 4 years ago
parent
commit
d3fdc79d87
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 2
      spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/config/GatewayMetricsAutoConfiguration.java

2
spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/config/GatewayMetricsAutoConfiguration.java

@ -65,7 +65,7 @@ public class GatewayMetricsAutoConfiguration { @@ -65,7 +65,7 @@ public class GatewayMetricsAutoConfiguration {
@Bean
@ConditionalOnBean(MeterRegistry.class)
@ConditionalOnProperty(name = "spring.cloud.gateway.metrics.enabled", matchIfMissing = true)
@ConditionalOnEnabledGlobalFilter
// don't use @ConditionalOnEnabledGlobalFilter
public GatewayMetricsFilter gatewayMetricFilter(MeterRegistry meterRegistry,
List<GatewayTagsProvider> tagsProviders) {
return new GatewayMetricsFilter(meterRegistry, tagsProviders);

Loading…
Cancel
Save