Interface JettyClientTagsProvider
@Incubating(since="1.5.0") public interface JettyClientTagsProvider
Provides
Tags for Jetty HttpClient request metrics.
Incubating in case there emerges a better way to handle path variable detection.- Since:
- 1.5.0
-
Method Summary
Modifier and Type Method Description default java.lang.Iterable<Tag>httpRequestTags(org.eclipse.jetty.client.api.Result result)Provides tags to be associated with metrics for the given client request.java.lang.StringuriPattern(org.eclipse.jetty.client.api.Result result)For client metric to be usefully aggregable, we must be able to time everything that goes to a certain endpoint, regardless of the parameters to that endpoint.
-
Method Details
-
httpRequestTags
Provides tags to be associated with metrics for the given client request.- Parameters:
result- the request result- Returns:
- tags to associate with metrics recorded for the request
-
uriPattern
java.lang.String uriPattern(org.eclipse.jetty.client.api.Result result)For client metric to be usefully aggregable, we must be able to time everything that goes to a certain endpoint, regardless of the parameters to that endpoint.- Parameters:
result- The result which also contains the original request.- Returns:
- A URI pattern with path variables and query parameter unsubstituted.
-