Document Jersey metrics' new outcome tag and polish formatting

See gh-12482
pull/14822/head
Andy Wilkinson 6 years ago
parent d6de58f257
commit e151dbf003

@ -1866,12 +1866,28 @@ customized by setting the `management.metrics.web.server.requests-metric-name` p
By default, Jersey server metrics are tagged with the following information:
* `method`, the request's method (for example, `GET` or `POST`).
* `uri`, the request's URI template prior to variable substitution, if possible (for
example, `/api/person/{id}`).
* `status`, the response's HTTP status code (for example, `200` or `500`).
* `exception`, the simple class name of any exception that was thrown while handling the
request.
|===
|Tag |Description
|`exception`
|Simple class name of any exception that was thrown while handling the request.
|`method`
|Request's method (for example, `GET` or `POST`)
|`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`
|`status`
|Response's HTTP status code (for example, `200` or `500`)
|`uri`
|Request's URI template prior to variable substitution, if possible (for example,
`/api/person/{id}`)
|===
To customize the tags, provide a `@Bean` that implements `JerseyTagsProvider`.

Loading…
Cancel
Save