Class MicrometerHttpClientInterceptor

java.lang.Object
org.frankframework.http.MicrometerHttpClientInterceptor

public class MicrometerHttpClientInterceptor extends Object
Based on MicrometerHttpClientInterceptor in `micrometer-metrics` repository on github.
The implementation is a bit different to integrate correctly with the framework by using the `MetricsInitializer` and a `IConfigurationAware` element. Please note that this code is specific for Apache Http Components version 4.
  • Constructor Details

    • MicrometerHttpClientInterceptor

      public MicrometerHttpClientInterceptor(MetricsInitializer configurationMetrics, IConfigurationAware parentFrankElement, Function<org.apache.http.HttpRequest,String> uriMapper, boolean exportTagsForRoute)
      Create a MicrometerHttpClientInterceptor instance.
      Parameters:
      configurationMetrics -
      parentFrankElement -
      uriMapper - URI mapper to create uri tag
      exportTagsForRoute - whether to export tags for route
  • Method Details

    • getRequestInterceptor

      public org.apache.http.HttpRequestInterceptor getRequestInterceptor()
    • getResponseInterceptor

      public org.apache.http.HttpResponseInterceptor getResponseInterceptor()