diff --git a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/GatewayMetricsFilter.java b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/GatewayMetricsFilter.java index 45ff2ce76..5a6da70a3 100644 --- a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/GatewayMetricsFilter.java +++ b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/GatewayMetricsFilter.java @@ -55,7 +55,8 @@ public class GatewayMetricsFilter implements GlobalFilter, Ordered { @Deprecated public GatewayMetricsFilter(MeterRegistry meterRegistry) { - this(meterRegistry, Arrays.asList(new GatewayHttpTagsProvider(), new GatewayRouteTagsProvider())); + this(meterRegistry, Arrays.asList(new GatewayHttpTagsProvider(), + new GatewayRouteTagsProvider())); } @Override diff --git a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/tagsprovider/GatewayHttpTagsProvider.java b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/tagsprovider/GatewayHttpTagsProvider.java index d0bed4be7..54c461ca9 100644 --- a/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/tagsprovider/GatewayHttpTagsProvider.java +++ b/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/tagsprovider/GatewayHttpTagsProvider.java @@ -61,8 +61,8 @@ public class GatewayHttpTagsProvider implements GatewayTagsProvider { } } - return Tags.of("outcome", outcome, "status", status, - "httpStatusCode", httpStatusCodeStr, "httpMethod", httpMethod); + return Tags.of("outcome", outcome, "status", status, "httpStatusCode", + httpStatusCodeStr, "httpMethod", httpMethod); } } diff --git a/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/support/tagsprovider/GatewayHttpTagsProviderTests.java b/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/support/tagsprovider/GatewayHttpTagsProviderTests.java index d2e63d90f..f82cc0c9a 100644 --- a/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/support/tagsprovider/GatewayHttpTagsProviderTests.java +++ b/spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/support/tagsprovider/GatewayHttpTagsProviderTests.java @@ -40,7 +40,8 @@ public class GatewayHttpTagsProviderTests { private static final String ROUTE_URI = "http://gatewaytagsprovider.org:80"; private static final Tags DEFAULT_TAGS = Tags.of("outcome", OK.series().name(), - "status", OK.name(), "httpStatusCode", String.valueOf(OK.value()), "httpMethod", "GET"); + "status", OK.name(), "httpStatusCode", String.valueOf(OK.value()), + "httpMethod", "GET"); @Test public void httpTags() {