Package io.micrometer.jetty12.client
Interface JettyClientTagsProvider
@Incubating(since="1.13.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.13.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault Iterable<io.micrometer.core.instrument.Tag> httpRequestTags(org.eclipse.jetty.client.Result result) Provides tags to be associated with metrics for the given client request and result.uriPattern(org.eclipse.jetty.client.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
default Iterable<io.micrometer.core.instrument.Tag> httpRequestTags(org.eclipse.jetty.client.Result result) Provides tags to be associated with metrics for the given client request and result.- Parameters:
result- the request result- Returns:
- tags to associate with metrics recorded for the request
-
uriPattern
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.
-