formatting
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user