Class GatewayPropagatingSenderTracingObservationHandler

java.lang.Object
io.micrometer.tracing.handler.PropagatingSenderTracingObservationHandler<GatewayContext>
org.springframework.cloud.gateway.filter.headers.observation.GatewayPropagatingSenderTracingObservationHandler
All Implemented Interfaces:
io.micrometer.observation.ObservationHandler<GatewayContext>, io.micrometer.tracing.handler.TracingObservationHandler<GatewayContext>

public class GatewayPropagatingSenderTracingObservationHandler extends io.micrometer.tracing.handler.PropagatingSenderTracingObservationHandler<GatewayContext>
Tracing header removing PropagatingSenderTracingObservationHandler.
Since:
4.0.0
Author:
Marcin Grzejszczak
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.micrometer.observation.ObservationHandler

    io.micrometer.observation.ObservationHandler.AllMatchingCompositeObservationHandler, io.micrometer.observation.ObservationHandler.CompositeObservationHandler, io.micrometer.observation.ObservationHandler.FirstMatchingCompositeObservationHandler

    Nested classes/interfaces inherited from interface io.micrometer.tracing.handler.TracingObservationHandler

    io.micrometer.tracing.handler.TracingObservationHandler.TracingContext
  • Constructor Summary

    Constructors
    Constructor
    Description
    GatewayPropagatingSenderTracingObservationHandler(io.micrometer.tracing.Tracer tracer, io.micrometer.tracing.propagation.Propagator propagator, List<String> remoteFields)
    Creates a new instance of PropagatingSenderTracingObservationHandler.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
    supportsContext(io.micrometer.observation.Observation.Context context)
     

    Methods inherited from class io.micrometer.tracing.handler.PropagatingSenderTracingObservationHandler

    createSenderSpan, customizeSenderSpan, getTracer, onError, onStop

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micrometer.tracing.handler.TracingObservationHandler

    endSpan, getParentSpan, getRequiredSpan, getSpanName, getTracingContext, onEvent, onScopeClosed, onScopeOpened, onScopeReset, setMaybeScopeOnTracingContext, tagSpan
  • Constructor Details

    • GatewayPropagatingSenderTracingObservationHandler

      public GatewayPropagatingSenderTracingObservationHandler(io.micrometer.tracing.Tracer tracer, io.micrometer.tracing.propagation.Propagator propagator, List<String> remoteFields)
      Creates a new instance of PropagatingSenderTracingObservationHandler.
      Parameters:
      tracer - the tracer to use to record events
      propagator - the mechanism to propagate tracing information into the carrier
      remoteFields - remote fields to be propagated over the wire
  • Method Details

    • onStart

      public void onStart(GatewayContext context)
      Specified by:
      onStart in interface io.micrometer.observation.ObservationHandler<GatewayContext>
      Overrides:
      onStart in class io.micrometer.tracing.handler.PropagatingSenderTracingObservationHandler<GatewayContext>
    • supportsContext

      public boolean supportsContext(io.micrometer.observation.Observation.Context context)
      Specified by:
      supportsContext in interface io.micrometer.observation.ObservationHandler<GatewayContext>
      Specified by:
      supportsContext in interface io.micrometer.tracing.handler.TracingObservationHandler<GatewayContext>
      Overrides:
      supportsContext in class io.micrometer.tracing.handler.PropagatingSenderTracingObservationHandler<GatewayContext>