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) Deprecated.static Tagmethod(javax.servlet.http.HttpServletRequest request) Creates amethodtag based on themethodof the givenrequest.static Tagoutcome(jakarta.servlet.http.HttpServletResponse response) Deprecated.since 1.12.0 in favor ofHttpJakartaServletRequestTags.outcome(jakarta.servlet.http.HttpServletResponse)static Tagoutcome(javax.servlet.http.HttpServletResponse response) Creates anoutcometag based on the status of the givenresponse.static Tagstatus(jakarta.servlet.http.HttpServletResponse response) Deprecated.since 1.12.0 in favor ofHttpJakartaServletRequestTags.status(jakarta.servlet.http.HttpServletResponse)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
Deprecated.since 1.12.0 in favor ofHttpJakartaServletRequestTags.method(jakarta.servlet.http.HttpServletRequest)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
Deprecated.since 1.12.0 in favor ofHttpJakartaServletRequestTags.status(jakarta.servlet.http.HttpServletResponse)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
Deprecated.since 1.12.0 in favor ofHttpJakartaServletRequestTags.outcome(jakarta.servlet.http.HttpServletResponse)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
-
HttpJakartaServletRequestTags.method(jakarta.servlet.http.HttpServletRequest)