Class JettyClientMetrics.Builder
java.lang.Object
io.micrometer.core.instrument.binder.jetty.JettyClientMetrics.Builder
- Enclosing class:
JettyClientMetrics
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
contentSizeMetricName
(String metricName) maxUriTags
(int maxUriTags) Provide a custom convention to override the default convention used when instrumenting with theObservation
API.observationRegistry
(io.micrometer.observation.ObservationRegistry observationRegistry) Configure an observation registry to instrument using theObservation
API instead of directly with aTimer
.tagsProvider
(JettyClientTagsProvider tagsProvider) Note that theJettyClientTagsProvider
will not be used withObservation
instrumentation whenobservationRegistry(ObservationRegistry)
is configured.timingMetricName
(String metricName)
-
Method Details
-
timingMetricName
-
contentSizeMetricName
-
maxUriTags
-
tagsProvider
Note that theJettyClientTagsProvider
will not be used withObservation
instrumentation whenobservationRegistry(ObservationRegistry)
is configured.- Parameters:
tagsProvider
- tags provider to use with metrics instrumentation- Returns:
- this builder
- Since:
- 1.11.0
-
observationRegistry
public JettyClientMetrics.Builder observationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) Configure an observation registry to instrument using theObservation
API instead of directly with aTimer
.- Parameters:
observationRegistry
- registry with which to instrument- Returns:
- this builder
- Since:
- 1.11.0
-
observationConvention
public JettyClientMetrics.Builder observationConvention(JettyClientObservationConvention convention) Provide a custom convention to override the default convention used when instrumenting with theObservation
API. This only takes effect when aobservationRegistry(ObservationRegistry)
is configured.- Parameters:
convention
- semantic convention to use- Returns:
- This builder instance.
- Since:
- 1.11.0
- See Also:
-
build
-