From e151dbf00391238f34350570a6ae0efb51f799cc Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Sun, 14 Oct 2018 14:21:37 +0100 Subject: [PATCH] Document Jersey metrics' new outcome tag and polish formatting See gh-12482 --- .../asciidoc/production-ready-features.adoc | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc index 343a9181ff9..de14dccbc8d 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc @@ -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`.