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.FirstMatchingCompositeObservationHandlerNested classes/interfaces inherited from interface io.micrometer.tracing.handler.TracingObservationHandler
io.micrometer.tracing.handler.TracingObservationHandler.TracingContext -
Constructor Summary
ConstructorsConstructorDescriptionGatewayPropagatingSenderTracingObservationHandler(io.micrometer.tracing.Tracer tracer, io.micrometer.tracing.propagation.Propagator propagator, List<String> remoteFields) Creates a new instance ofPropagatingSenderTracingObservationHandler. -
Method Summary
Modifier and TypeMethodDescriptionvoidonStart(GatewayContext context) booleansupportsContext(io.micrometer.observation.Observation.Context context) Methods inherited from class io.micrometer.tracing.handler.PropagatingSenderTracingObservationHandler
createSenderSpan, customizeSenderSpan, getTracer, onError, onStopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 ofPropagatingSenderTracingObservationHandler.- Parameters:
tracer- the tracer to use to record eventspropagator- the mechanism to propagate tracing information into the carrierremoteFields- remote fields to be propagated over the wire
-
-
Method Details
-
onStart
- Specified by:
onStartin interfaceio.micrometer.observation.ObservationHandler<GatewayContext>- Overrides:
onStartin classio.micrometer.tracing.handler.PropagatingSenderTracingObservationHandler<GatewayContext>
-
supportsContext
public boolean supportsContext(io.micrometer.observation.Observation.Context context) - Specified by:
supportsContextin interfaceio.micrometer.observation.ObservationHandler<GatewayContext>- Specified by:
supportsContextin interfaceio.micrometer.tracing.handler.TracingObservationHandler<GatewayContext>- Overrides:
supportsContextin classio.micrometer.tracing.handler.PropagatingSenderTracingObservationHandler<GatewayContext>
-