@Internal public class BraveZipkinHttpClientInterceptorManager extends Object implements ZipkinHttpClientInterceptorManager
ZipkinHttpClientInterceptorManager
using the Brave framework.Constructor and Description |
---|
BraveZipkinHttpClientInterceptorManager(com.github.kristofa.brave.Brave brave) |
Modifier and Type | Method and Description |
---|---|
@NonNull Iterable<org.apache.http.HttpRequestInterceptor> |
requestInterceptors(String serviceName)
Returns the
HttpRequestInterceptor 's for an outbound connection. |
@NonNull Iterable<org.apache.http.HttpRequestInterceptor> |
requestInterceptors(String serviceName,
BiFunction<URI,String,String> spanNameGenerator)
Returns the
HttpRequestInterceptor 's for an outbound connection, that generates the span name using
the supplied function. |
@NonNull Iterable<org.apache.http.HttpResponseInterceptor> |
responseInterceptors()
Returns the
HttpResponseInterceptor 's for an outbound connection. |
public BraveZipkinHttpClientInterceptorManager(com.github.kristofa.brave.Brave brave)
public @NonNull Iterable<org.apache.http.HttpRequestInterceptor> requestInterceptors(String serviceName)
ZipkinHttpClientInterceptorManager
HttpRequestInterceptor
's for an outbound connection. The span name will be computed using the
system default algorithm.requestInterceptors
in interface ZipkinHttpClientInterceptorManager
serviceName
- the name of the service being invokedpublic @NonNull Iterable<org.apache.http.HttpRequestInterceptor> requestInterceptors(String serviceName, BiFunction<URI,String,String> spanNameGenerator)
ZipkinHttpClientInterceptorManager
HttpRequestInterceptor
's for an outbound connection, that generates the span name using
the supplied function. NOTE: requestInterceptors
in interface ZipkinHttpClientInterceptorManager
serviceName
- the name of the service being invokedspanNameGenerator
- function for generating a span name for the invocation. The function is passed
the URI
for the outbound connection, and the http method (i.e. GET,
POST, etc)public @NonNull Iterable<org.apache.http.HttpResponseInterceptor> responseInterceptors()
ZipkinHttpClientInterceptorManager
HttpResponseInterceptor
's for an outbound connection.responseInterceptors
in interface ZipkinHttpClientInterceptorManager
Copyright © 2003–2021 Atlassian. All rights reserved.