Package org.frankframework.http
Class MicrometerHttpClientInterceptor
java.lang.Object
org.frankframework.http.MicrometerHttpClientInterceptor
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.
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 Summary
ConstructorDescriptionMicrometerHttpClientInterceptor
(MetricsInitializer configurationMetrics, IConfigurationAware parentFrankElement, Function<org.apache.http.HttpRequest, String> uriMapper, boolean exportTagsForRoute) Create aMicrometerHttpClientInterceptor
instance. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.HttpRequestInterceptor
org.apache.http.HttpResponseInterceptor
-
Constructor Details
-
MicrometerHttpClientInterceptor
public MicrometerHttpClientInterceptor(MetricsInitializer configurationMetrics, IConfigurationAware parentFrankElement, Function<org.apache.http.HttpRequest, String> uriMapper, boolean exportTagsForRoute) Create aMicrometerHttpClientInterceptor
instance.- Parameters:
configurationMetrics
-parentFrankElement
-uriMapper
- URI mapper to createuri
tagexportTagsForRoute
- whether to export tags for route
-
-
Method Details
-
getRequestInterceptor
public org.apache.http.HttpRequestInterceptor getRequestInterceptor() -
getResponseInterceptor
public org.apache.http.HttpResponseInterceptor getResponseInterceptor()
-