Class TraceWebAspect


  • public class TraceWebAspect
    extends Object
    Aspect that adds tracing. RestController annotated classes with public Callable methods Controller annotated classes with public Callable methods Controller or RestController annotated classes with public WebAsyncTask methods. For controllers an around aspect is created that wraps the Callable.call() method execution in TraceCallable. This aspect will continue a span created by the TracingFilter. It will not create a new span - since the one in TracingFilter will wait until processing has been finished
    Since:
    1.0.0
    Author:
    Tomasz Nurkewicz, 4financeIT, Michal Chmielarz, 4financeIT, Marcin Grzejszczak, Spencer Gibb
    See Also:
    Controller, RestOperations
    • Method Detail

      • wrapWithCorrelationId

        public Object wrapWithCorrelationId​(org.aspectj.lang.ProceedingJoinPoint pjp)
                                     throws Throwable
        Throws:
        Throwable
      • wrapWebAsyncTaskWithCorrelationId

        public Object wrapWebAsyncTaskWithCorrelationId​(org.aspectj.lang.ProceedingJoinPoint pjp)
                                                 throws Throwable
        Throws:
        Throwable