Browse Source

formatting

pull/1212/head
Spencer Gibb 5 years ago
parent
commit
f7b9bb76c8
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 3
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/GatewayMetricsFilter.java
  2. 4
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/tagsprovider/GatewayHttpTagsProvider.java
  3. 3
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/support/tagsprovider/GatewayHttpTagsProviderTests.java

3
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/GatewayMetricsFilter.java

@ -55,7 +55,8 @@ public class GatewayMetricsFilter implements GlobalFilter, Ordered { @@ -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

4
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/support/tagsprovider/GatewayHttpTagsProvider.java

@ -61,8 +61,8 @@ public class GatewayHttpTagsProvider implements GatewayTagsProvider { @@ -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);
}
}

3
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/support/tagsprovider/GatewayHttpTagsProviderTests.java

@ -40,7 +40,8 @@ public class GatewayHttpTagsProviderTests { @@ -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() {

Loading…
Cancel
Save