Commit cc894ce4 authored by Brian Clozel's avatar Brian Clozel

Fix Micrometer tag providers after HttpStatus changes

Since SPR-16898, `HttpStatus.toString()` has changed and we should
instead rely on `HttpStatus.value()` to get the HTTP status number.
parent 8365d535
......@@ -83,7 +83,7 @@ public final class WebClientExchangeTags {
* @return the status tag
*/
public static Tag status(ClientResponse response) {
return Tag.of("status", response.statusCode().toString());
return Tag.of("status", String.valueOf(response.statusCode().value()));
}
/**
......
......@@ -69,7 +69,7 @@ public final class WebFluxTags {
if (status == null) {
status = HttpStatus.OK;
}
return Tag.of("status", status.toString());
return Tag.of("status", String.valueOf(status.value()));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment