Class OpenTracingServerFilter

java.lang.Object
io.micronaut.tracing.opentracing.instrument.http.AbstractOpenTracingFilter
io.micronaut.tracing.opentracing.instrument.http.OpenTracingServerFilter
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=io.opentracing.Tracer.class) @Requires(missingBeans=io.opentracing.noop.NoopTracer.class) public final class OpenTracingServerFilter extends AbstractOpenTracingFilter implements io.micronaut.http.filter.HttpServerFilter
An HTTP server instrumentation filter that uses Open Tracing.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • OpenTracingServerFilter

      public OpenTracingServerFilter(io.opentracing.Tracer tracer, io.micronaut.core.convert.ConversionService conversionService, @Nullable @Nullable TracingExclusionsConfiguration exclusionsConfig)
      Creates an HTTP server instrumentation filter.
      Parameters:
      tracer - for span creation and propagation across transport
      conversionService - the ConversionService instance
      exclusionsConfig - The TracingExclusionsConfiguration
  • 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 interface io.micronaut.http.filter.HttpServerFilter
    • getOrder

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