Class HttpRequestTags
java.lang.Object
io.micrometer.core.instrument.binder.http.HttpRequestTags
Tags for HTTP requests.
- Since:
- 1.4.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic Tagstatic Tagmethod(jakarta.servlet.http.HttpServletRequest request) Creates amethodtag based on themethodof the givenrequest.static Tagmethod(javax.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 Tagoutcome(javax.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.static Tagstatus(javax.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).
-
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).
- Since:
- 1.10.0
-
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
-
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
- Since:
- 1.10.0
-
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
-
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
- Since:
- 1.10.0
-