Add missing outcome tag for WebClient metrics

On error cases, the "outcome" tag would be missing from recorded metrics
for the `WebClient`.

This commit fixes this issue and improves the reference documentation by
mentioning the tag values used for error cases, when the client response
is not received (I/O errors, client error, etc).

Fixes gh-17219
This commit is contained in:
Brian Clozel
2019-06-18 15:29:22 +02:00
parent 82949b9cc4
commit 809a3965c9
3 changed files with 8 additions and 11 deletions

View File

@@ -1981,10 +1981,11 @@ following information:
|`outcome`
|Request's outcome based on the status code of the response. 1xx is
`INFORMATIONAL`, 2xx is `SUCCESS`, 3xx is `REDIRECTION`, 4xx `CLIENT_ERROR`, and 5xx is
`SERVER_ERROR`
`SERVER_ERROR`, `UNKNOWN` otherwise
|`status`
|Response's HTTP status code (for example, `200` or `500`)
|Response's HTTP status code if available (for example, `200` or `500`),
or `IO_ERROR` in case or I/O issues, `CLIENT_ERROR` otherwise
|`uri`
|Request's URI template prior to variable substitution, if possible (for example,