Class OpenTracingClientFilter

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

    • OpenTracingClientFilter

      public OpenTracingClientFilter(io.opentracing.Tracer tracer, io.micronaut.core.convert.ConversionService conversionService, @Nullable @Nullable TracingExclusionsConfiguration exclusionsConfig)
      Initialize the open tracing client filter with tracer and exclusion configuration.
      Parameters:
      tracer - the tracer for span creation and configuring across arbitrary transports
      conversionService - the ConversionService instance
      exclusionsConfig - The TracingExclusionsConfiguration
  • 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 interface io.micronaut.http.filter.HttpClientFilter