Class BraveTracingServerFilter

  • All Implemented Interfaces:
    io.micronaut.core.order.Ordered, io.micronaut.http.filter.HttpFilter, io.micronaut.http.filter.HttpServerFilter

    @Filter("${tracing.http.server.path:/**}")
    @Requires(beans=brave.http.HttpServerHandler.class)
    @Replaces(io.micronaut.tracing.instrument.http.OpenTracingServerFilter.class)
    public class BraveTracingServerFilter
    extends java.lang.Object
    implements io.micronaut.http.filter.HttpServerFilter
    Instruments incoming HTTP requests.
    Since:
    1.0
    • Field Summary

      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Summary

      Constructors 
      Constructor Description
      BraveTracingServerFilter​(brave.http.HttpTracing httpTracing, io.opentracing.Tracer openTracer, brave.http.HttpServerHandler<brave.http.HttpServerRequest,​brave.http.HttpServerResponse> serverHandler)  
      BraveTracingServerFilter​(brave.http.HttpTracing httpTracing, io.opentracing.Tracer openTracer, brave.http.HttpServerHandler<brave.http.HttpServerRequest,​brave.http.HttpServerResponse> serverHandler, io.micronaut.tracing.instrument.http.TracingExclusionsConfiguration exclusionsConfiguration)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.reactivestreams.Publisher<io.micronaut.http.MutableHttpResponse<?>> doFilter​(io.micronaut.http.HttpRequest<?> request, io.micronaut.http.filter.ServerFilterChain chain)  
      int getOrder()  
      • 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 Detail

      • BraveTracingServerFilter

        public BraveTracingServerFilter​(brave.http.HttpTracing httpTracing,
                                        io.opentracing.Tracer openTracer,
                                        brave.http.HttpServerHandler<brave.http.HttpServerRequest,​brave.http.HttpServerResponse> serverHandler)
        Parameters:
        httpTracing - the HttpTracing instance
        openTracer - the Open Tracing instance
        serverHandler - the HttpServerHandler instance
      • BraveTracingServerFilter

        @Inject
        public BraveTracingServerFilter​(brave.http.HttpTracing httpTracing,
                                        io.opentracing.Tracer openTracer,
                                        brave.http.HttpServerHandler<brave.http.HttpServerRequest,​brave.http.HttpServerResponse> serverHandler,
                                        @Nullable
                                        io.micronaut.tracing.instrument.http.TracingExclusionsConfiguration exclusionsConfiguration)
        Parameters:
        httpTracing - the HttpTracing instance
        openTracer - the Open Tracing instance
        serverHandler - the HttpServerHandler instance
        exclusionsConfiguration - the TracingExclusionsConfiguration
    • Method Detail

      • 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 interface io.micronaut.http.filter.HttpServerFilter
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface io.micronaut.core.order.Ordered