Class JerseyTags
java.lang.Object
io.micrometer.core.instrument.binder.jersey.server.JerseyTags
Factory methods for
Tags associated with a request-response exchange that
is handled by Jersey server.- Since:
- 1.8.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic Tagexception(org.glassfish.jersey.server.monitoring.RequestEvent event) static Tagmethod(org.glassfish.jersey.server.ContainerRequest request) Creates amethodtag based on themethodof the givenrequest.static Tagoutcome(org.glassfish.jersey.server.ContainerResponse response) Creates anoutcometag based on the status of the givenresponse.static Tagstatus(org.glassfish.jersey.server.ContainerResponse response) Creates astatustag based on the status of the givenresponse.static Taguri(org.glassfish.jersey.server.monitoring.RequestEvent event) Creates auritag based on the URI of the givenevent.
-
Method Details
-
method
Creates amethodtag based on themethodof the givenrequest.- Parameters:
request- the container 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 container response- Returns:
- the status tag derived from the status of the response
-
uri
Creates auritag based on the URI of the givenevent. Uses theExtendedUriInfo.getMatchedTemplates()if available.REDIRECTIONfor 3xx responses,NOT_FOUNDfor 404 responses.- Parameters:
event- the request event- Returns:
- the uri tag derived from the request event
-
exception
- Parameters:
event- the request event- Returns:
- the exception tag derived from the exception
-
outcome
Creates anoutcometag based on the status of the givenresponse.- Parameters:
response- the container response- Returns:
- the outcome tag derived from the status of the response
-