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 `FrankElement` 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 `FrankElement` element. Please note that this code is specific for Apache Http Components version 4.
-
Constructor Summary
ConstructorsConstructorDescriptionMicrometerHttpClientInterceptor(MetricsInitializer configurationMetrics, FrankElement parentFrankElement, Function<org.apache.http.HttpRequest, String> uriMapper, boolean exportTagsForRoute) Create aMicrometerHttpClientInterceptorinstance. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.HttpRequestInterceptororg.apache.http.HttpResponseInterceptor
-
Constructor Details
-
MicrometerHttpClientInterceptor
public MicrometerHttpClientInterceptor(MetricsInitializer configurationMetrics, FrankElement parentFrankElement, Function<org.apache.http.HttpRequest, String> uriMapper, boolean exportTagsForRoute) Create aMicrometerHttpClientInterceptorinstance.- Parameters:
configurationMetrics-parentFrankElement-uriMapper- URI mapper to createuritagexportTagsForRoute- whether to export tags for route
-
-
Method Details
-
getRequestInterceptor
public org.apache.http.HttpRequestInterceptor getRequestInterceptor() -
getResponseInterceptor
public org.apache.http.HttpResponseInterceptor getResponseInterceptor()
-