Class 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 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)
    • Method Detail

      • doApply

        protected Object doApply​(Object message,
                                 org.springframework.cloud.function.context.catalog.SimpleFunctionRegistry.FunctionInvocationWrapper targetFunction)
        Specified by:
        doApply in class org.springframework.cloud.function.context.catalog.FunctionAroundWrapper
      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.cloud.context.scope.refresh.RefreshScopeRefreshedEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.cloud.context.scope.refresh.RefreshScopeRefreshedEvent>