Class JettyClientTags
java.lang.Object
io.micrometer.core.instrument.binder.jetty.JettyClientTags
Deprecated.
since 1.13.0 in favor of the micrometer-jetty12 module
Factory methods for
Tags associated with a request-response exchange that
is handled by Jetty HttpClient.- Since:
- 1.5.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic Tagexception(org.eclipse.jetty.client.api.Result result) Deprecated.static Taghost(org.eclipse.jetty.client.api.Request request) Deprecated.Creates ahosttag based on theRequest.getHost()of the givenrequest.static Tagmethod(org.eclipse.jetty.client.api.Request request) Deprecated.Creates amethodtag based on themethodof the givenrequest.static Tagoutcome(org.eclipse.jetty.client.api.Result result) Deprecated.Creates anoutcometag based on the status of the givenresult.static Tagstatus(org.eclipse.jetty.client.api.Result result) Deprecated.Creates astatustag based on the status of the givenresult.static Taguri(org.eclipse.jetty.client.api.Result result, Function<org.eclipse.jetty.client.api.Result, String> successfulUriPattern) Deprecated.Creates auritag based on the URI of the givenresult.
-
Method Details
-
method
Deprecated.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
Deprecated.Creates ahosttag based on theRequest.getHost()of the givenrequest.- Parameters:
request- the request- Returns:
- the host tag derived from request
- Since:
- 1.7.0
-
status
Deprecated.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 Tag uri(org.eclipse.jetty.client.api.Result result, Function<org.eclipse.jetty.client.api.Result, String> successfulUriPattern) Deprecated.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
Deprecated.- Parameters:
result- the request result- Returns:
- the exception tag derived from the exception
-
outcome
Deprecated.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
-