From d3fdc79d87522936cca07cb9535f4c2a468669f9 Mon Sep 17 00:00:00 2001 From: spencergibb Date: Fri, 25 Sep 2020 21:57:57 -0400 Subject: [PATCH] removes @ConditionalOnEnabledGlobalFilter from metrics --- .../cloud/gateway/config/GatewayMetricsAutoConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/config/GatewayMetricsAutoConfiguration.java b/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/config/GatewayMetricsAutoConfiguration.java index 345cb6ec3..e6063b320 100644 --- a/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/config/GatewayMetricsAutoConfiguration.java +++ b/spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/config/GatewayMetricsAutoConfiguration.java @@ -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 tagsProviders) { return new GatewayMetricsFilter(meterRegistry, tagsProviders);