org.springframework.boot.actuate.metrics.web.client

Class MetricsRestTemplateCustomizer

  • java.lang.Object
    • org.springframework.boot.actuate.metrics.web.client.MetricsRestTemplateCustomizer
    • Constructor Detail

      • MetricsRestTemplateCustomizer

        public MetricsRestTemplateCustomizer(io.micrometer.core.instrument.MeterRegistry meterRegistry,
                                             RestTemplateExchangeTagsProvider tagProvider,
                                             String metricName)
        Creates a new MetricsRestTemplateInterceptor that will record metrics using the given meterRegistry with tags provided by the given tagProvider.
        Parameters:
        meterRegistry - the meter registry
        tagProvider - the tag provider
        metricName - the name of the recorded metric