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 a
FunctionAroundWrapper.- Since:
- 3.0.0
- Author:
- Marcin Grzejszczak, Oleg Zhurakousky, Tim Ysewyn
-
Constructor Summary
ConstructorsConstructorDescriptionTraceFunctionAroundWrapper(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
Modifier and TypeMethodDescriptionprotected 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
applyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
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 Details
-
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>
-