Skip to content

Commit e151dbf

Browse files
committed
Document Jersey metrics' new outcome tag and polish formatting
See gh-12482
1 parent d6de58f commit e151dbf

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc

+22-6
Original file line numberDiff line numberDiff line change
@@ -1866,12 +1866,28 @@ customized by setting the `management.metrics.web.server.requests-metric-name` p
18661866

18671867
By default, Jersey server metrics are tagged with the following information:
18681868

1869-
* `method`, the request's method (for example, `GET` or `POST`).
1870-
* `uri`, the request's URI template prior to variable substitution, if possible (for
1871-
example, `/api/person/{id}`).
1872-
* `status`, the response's HTTP status code (for example, `200` or `500`).
1873-
* `exception`, the simple class name of any exception that was thrown while handling the
1874-
request.
1869+
|===
1870+
|Tag |Description
1871+
1872+
|`exception`
1873+
|Simple class name of any exception that was thrown while handling the request.
1874+
1875+
|`method`
1876+
|Request's method (for example, `GET` or `POST`)
1877+
1878+
|`outcome`
1879+
|Request's outcome based on the status code of the response. 1xx is
1880+
`INFORMATIONAL`, 2xx is `SUCCESS`, 3xx is `REDIRECTION`, 4xx `CLIENT_ERROR`, and 5xx is
1881+
`SERVER_ERROR`
1882+
1883+
|`status`
1884+
|Response's HTTP status code (for example, `200` or `500`)
1885+
1886+
|`uri`
1887+
|Request's URI template prior to variable substitution, if possible (for example,
1888+
`/api/person/{id}`)
1889+
1890+
|===
18751891

18761892
To customize the tags, provide a `@Bean` that implements `JerseyTagsProvider`.
18771893

0 commit comments

Comments
 (0)