Package io.micronaut.tracing.brave.http
Class BraveTracingServerFilter
java.lang.Object
io.micronaut.tracing.brave.http.BraveTracingServerFilter
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,io.micronaut.http.filter.HttpFilter
,io.micronaut.http.filter.HttpServerFilter
@Internal
@Filter("${tracing.http.server.path:/**}")
@Requires(beans=brave.http.HttpServerHandler.class)
@Replaces(OpenTracingServerFilter.class)
public final class BraveTracingServerFilter
extends Object
implements io.micronaut.http.filter.HttpServerFilter
Instruments incoming HTTP requests.
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionBraveTracingServerFilter
(brave.propagation.CurrentTraceContext currentTraceContext, brave.http.HttpServerHandler<brave.http.HttpServerRequest, brave.http.HttpServerResponse> serverHandler, @Nullable TracingExclusionsConfiguration exclusionsConfiguration) -
Method Summary
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.HttpServerFilter
doFilter
-
Constructor Details
-
BraveTracingServerFilter
@Inject public BraveTracingServerFilter(brave.propagation.CurrentTraceContext currentTraceContext, brave.http.HttpServerHandler<brave.http.HttpServerRequest, brave.http.HttpServerResponse> serverHandler, @Nullable @Nullable TracingExclusionsConfiguration exclusionsConfiguration) - Parameters:
currentTraceContext
- The trace contextserverHandler
- theHttpServerHandler
instanceexclusionsConfiguration
- theTracingExclusionsConfiguration
-
-
Method Details
-
doFilter
public org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> doFilter(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.filter.ServerFilterChain chain) - Specified by:
doFilter
in interfaceio.micronaut.http.filter.HttpServerFilter
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceio.micronaut.core.order.Ordered
-