Package io.micronaut.tracing.brave.http
Class BraveTracingClientFilter
java.lang.Object
io.micronaut.tracing.brave.http.BraveTracingClientFilter
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,io.micronaut.http.filter.HttpClientFilter
,io.micronaut.http.filter.HttpFilter
@Internal
@Filter("${tracing.http.client.path:/**}")
@Requires(beans=brave.http.HttpClientHandler.class)
@Replaces(OpenTracingClientFilter.class)
public final class BraveTracingClientFilter
extends Object
implements io.micronaut.http.filter.HttpClientFilter
Instruments outgoing HTTP requests.
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionBraveTracingClientFilter
(brave.propagation.CurrentTraceContext currentTraceContext, brave.http.HttpClientHandler<brave.http.HttpClientRequest, brave.http.HttpClientResponse> clientHandler, @Nullable TracingExclusionsConfiguration exclusionsConfiguration) Initialize tracing filter with clientHandler and httpTracing. -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<? extends io.micronaut.http.HttpResponse<?>>
doFilter
(io.micronaut.http.MutableHttpRequest<?> request, io.micronaut.http.filter.ClientFilterChain chain) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.filter.HttpClientFilter
doFilter
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Constructor Details
-
BraveTracingClientFilter
public BraveTracingClientFilter(brave.propagation.CurrentTraceContext currentTraceContext, brave.http.HttpClientHandler<brave.http.HttpClientRequest, brave.http.HttpClientResponse> clientHandler, @Nullable @Nullable TracingExclusionsConfiguration exclusionsConfiguration) Initialize tracing filter with clientHandler and httpTracing.- Parameters:
currentTraceContext
- The trace contextclientHandler
- the standard way to instrument HTTP clientexclusionsConfiguration
- theTracingExclusionsConfiguration
-
-
Method Details
-
doFilter
public org.reactivestreams.Publisher<? extends io.micronaut.http.HttpResponse<?>> doFilter(io.micronaut.http.MutableHttpRequest<?> request, io.micronaut.http.filter.ClientFilterChain chain) - Specified by:
doFilter
in interfaceio.micronaut.http.filter.HttpClientFilter
-