Package io.micrometer.jetty12.client
Class JettyClientTags
java.lang.Object
io.micrometer.jetty12.client.JettyClientTags
Factory methods for
Tags associated with a request-response exchange that
is handled by Jetty HttpClient.- Since:
- 1.13.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.micrometer.core.instrument.Tagexception(org.eclipse.jetty.client.Result result) static io.micrometer.core.instrument.Taghost(org.eclipse.jetty.client.Request request) Creates ahosttag based on theRequest.getHost()of the givenrequest.static io.micrometer.core.instrument.Tagmethod(org.eclipse.jetty.client.Request request) Creates amethodtag based on themethodof the givenrequest.static io.micrometer.core.instrument.Tagoutcome(org.eclipse.jetty.client.Result result) Creates anoutcometag based on the status of the givenresult.static io.micrometer.core.instrument.Tagstatus(org.eclipse.jetty.client.Result result) Creates astatustag based on the status of the givenresult.static io.micrometer.core.instrument.Taguri(org.eclipse.jetty.client.Result result, Function<org.eclipse.jetty.client.Result, String> successfulUriPattern) Creates auritag based on the URI of the givenresult.
-
Method Details
-
method
public static io.micrometer.core.instrument.Tag method(org.eclipse.jetty.client.Request request) Creates amethodtag based on themethodof the givenrequest.- Parameters:
request- the request- Returns:
- the method tag whose value is a capitalized method (e.g. GET).
-
host
public static io.micrometer.core.instrument.Tag host(org.eclipse.jetty.client.Request request) Creates ahosttag based on theRequest.getHost()of the givenrequest.- Parameters:
request- the request- Returns:
- the host tag derived from request
-
status
public static io.micrometer.core.instrument.Tag status(org.eclipse.jetty.client.Result result) Creates astatustag based on the status of the givenresult.- Parameters:
result- the request result- Returns:
- the status tag derived from the status of the response
-
uri
public static io.micrometer.core.instrument.Tag uri(org.eclipse.jetty.client.Result result, Function<org.eclipse.jetty.client.Result, String> successfulUriPattern) Creates auritag based on the URI of the givenresult.REDIRECTIONfor 3xx responses,NOT_FOUNDfor 404 responses.- Parameters:
result- the request resultsuccessfulUriPattern- successful URI pattern- Returns:
- the uri tag derived from the request result
-
exception
public static io.micrometer.core.instrument.Tag exception(org.eclipse.jetty.client.Result result) - Parameters:
result- the request result- Returns:
- the exception tag derived from the exception
-
outcome
public static io.micrometer.core.instrument.Tag outcome(org.eclipse.jetty.client.Result result) Creates anoutcometag based on the status of the givenresult.- Parameters:
result- the request result- Returns:
- the outcome tag derived from the status of the response
-