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 Tagstatic Tagmethod(jakarta.servlet.http.HttpServletRequest request) Creates amethodtag based on themethodof the givenrequest.static Tagoutcome(jakarta.servlet.http.HttpServletResponse response) Creates anoutcometag based on the status of the givenresponse.static Tagstatus(jakarta.servlet.http.HttpServletResponse response) Creates astatustag based on the status of the givenresponse.
-
Method Details
-
method
Creates amethodtag based on themethodof the givenrequest.- Parameters:
request- the request- Returns:
- the method tag whose value is a capitalized method (e.g. GET).
-
status
Creates astatustag 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 anoutcometag based on the status of the givenresponse.- Parameters:
response- the HTTP response- Returns:
- the outcome tag derived from the status of the response
-