Interface ZipkinHttpClientInterceptorManager
-
@Internal public interface ZipkinHttpClientInterceptorManagerManager for obtaining the HttpClient interceptors required for handling Zipkin communications. This is a placeholder until a final abstraction is defined. It is open to be removed or changed without notice.- Since:
- 5.10
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull Iterable<org.apache.http.HttpRequestInterceptor>requestInterceptors(String serviceName)Returns theHttpRequestInterceptor's for an outbound connection.@NonNull Iterable<org.apache.http.HttpRequestInterceptor>requestInterceptors(String serviceName, BiFunction<URI,String,String> spanNameGenerator)Returns theHttpRequestInterceptor's for an outbound connection, that generates the span name using the supplied function.@NonNull Iterable<org.apache.http.HttpResponseInterceptor>responseInterceptors()Returns theHttpResponseInterceptor's for an outbound connection.
-
-
-
Method Detail
-
requestInterceptors
@NonNull Iterable<org.apache.http.HttpRequestInterceptor> requestInterceptors(String serviceName)
Returns theHttpRequestInterceptor's for an outbound connection. The span name will be computed using the system default algorithm.- Parameters:
serviceName- the name of the service being invoked- Returns:
- the request interceptors
-
requestInterceptors
@NonNull Iterable<org.apache.http.HttpRequestInterceptor> requestInterceptors(String serviceName, BiFunction<URI,String,String> spanNameGenerator)
Returns theHttpRequestInterceptor's for an outbound connection, that generates the span name using the supplied function. NOTE:- Parameters:
serviceName- the name of the service being invokedspanNameGenerator- function for generating a span name for the invocation. The function is passed theURIfor the outbound connection, and the http method (i.e. GET, POST, etc)- Returns:
- the request interceptors
-
responseInterceptors
@NonNull Iterable<org.apache.http.HttpResponseInterceptor> responseInterceptors()
Returns theHttpResponseInterceptor's for an outbound connection.- Returns:
- the response interceptors
-
-