Class HttpJakartaServletRequestTags
java.lang.Object
io.micrometer.core.instrument.binder.http.HttpJakartaServletRequestTags
Tags for
HTTP Jakarta requests
.- Since:
- 1.12.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic Tag
static Tag
method
(jakarta.servlet.http.HttpServletRequest request) Creates amethod
tag based on themethod
of the givenrequest
.static Tag
outcome
(jakarta.servlet.http.HttpServletResponse response) Creates anoutcome
tag based on the status of the givenresponse
.static Tag
status
(jakarta.servlet.http.HttpServletResponse response) Creates astatus
tag based on the status of the givenresponse
.
-
Method Details
-
method
Creates amethod
tag based on themethod
of the givenrequest
.- Parameters:
request
- the request- Returns:
- the method tag whose value is a capitalized method (e.g. GET).
-
status
Creates astatus
tag based on the status of the givenresponse
.- Parameters:
response
- the HTTP response- Returns:
- the status tag derived from the status of the response
-
exception
- Parameters:
exception
- the exception, may benull
- Returns:
- the exception tag derived from the exception
-
outcome
Creates anoutcome
tag based on the status of the givenresponse
.- Parameters:
response
- the HTTP response- Returns:
- the outcome tag derived from the status of the response
-