Class TraceFunctionAroundWrapper
- java.lang.Object
-
- org.springframework.cloud.function.context.catalog.FunctionAroundWrapper
-
- org.springframework.cloud.sleuth.instrument.messaging.TraceFunctionAroundWrapper
-
- All Implemented Interfaces:
EventListener,BiFunction<Object,org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry.FunctionInvocationWrapper,Object>,org.springframework.context.ApplicationListener<org.springframework.cloud.context.scope.refresh.RefreshScopeRefreshedEvent>
public class TraceFunctionAroundWrapper extends org.springframework.cloud.function.context.catalog.FunctionAroundWrapper implements org.springframework.context.ApplicationListener<org.springframework.cloud.context.scope.refresh.RefreshScopeRefreshedEvent>Trace representation of aFunctionAroundWrapper.- Since:
- 3.0.0
- Author:
- Marcin Grzejszczak, Oleg Zhurakousky, Tim Ysewyn
-
-
Constructor Summary
Constructors Constructor Description TraceFunctionAroundWrapper(org.springframework.core.env.Environment environment, Tracer tracer, Propagator propagator, Propagator.Setter<org.springframework.messaging.support.MessageHeaderAccessor> injector, Propagator.Getter<org.springframework.messaging.support.MessageHeaderAccessor> extractor)TraceFunctionAroundWrapper(org.springframework.core.env.Environment environment, Tracer tracer, Propagator propagator, Propagator.Setter<org.springframework.messaging.support.MessageHeaderAccessor> injector, Propagator.Getter<org.springframework.messaging.support.MessageHeaderAccessor> extractor, List<FunctionMessageSpanCustomizer> customizers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectdoApply(Object message, org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry.FunctionInvocationWrapper targetFunction)voidonApplicationEvent(org.springframework.cloud.context.scope.refresh.RefreshScopeRefreshedEvent event)-
Methods inherited from class org.springframework.cloud.function.context.catalog.FunctionAroundWrapper
apply
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Constructor Detail
-
TraceFunctionAroundWrapper
public TraceFunctionAroundWrapper(org.springframework.core.env.Environment environment, Tracer tracer, Propagator propagator, Propagator.Setter<org.springframework.messaging.support.MessageHeaderAccessor> injector, Propagator.Getter<org.springframework.messaging.support.MessageHeaderAccessor> extractor)
-
TraceFunctionAroundWrapper
public TraceFunctionAroundWrapper(org.springframework.core.env.Environment environment, Tracer tracer, Propagator propagator, Propagator.Setter<org.springframework.messaging.support.MessageHeaderAccessor> injector, Propagator.Getter<org.springframework.messaging.support.MessageHeaderAccessor> extractor, List<FunctionMessageSpanCustomizer> customizers)
-
-
Method Detail
-
doApply
protected Object doApply(Object message, org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry.FunctionInvocationWrapper targetFunction)
- Specified by:
doApplyin classorg.springframework.cloud.function.context.catalog.FunctionAroundWrapper
-
onApplicationEvent
public void onApplicationEvent(org.springframework.cloud.context.scope.refresh.RefreshScopeRefreshedEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.cloud.context.scope.refresh.RefreshScopeRefreshedEvent>
-
-