Class TraceWebAspect
- java.lang.Object
-
- org.springframework.cloud.sleuth.instrument.web.TraceWebAspect
-
public class TraceWebAspect extends Object
Aspect that adds tracing.RestControllerannotated classes with publicCallablemethodsControllerannotated classes with publicCallablemethodsControllerorRestControllerannotated classes with publicWebAsyncTaskmethods. For controllers an around aspect is created that wraps theCallable.call()method execution inTraceCallable. 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
-
-
Constructor Summary
Constructors Constructor Description TraceWebAspect(Tracer tracer, CurrentTraceContext currentTraceContext, SpanNamer spanNamer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectwrapWebAsyncTaskWithCorrelationId(org.aspectj.lang.ProceedingJoinPoint pjp)ObjectwrapWithCorrelationId(org.aspectj.lang.ProceedingJoinPoint pjp)
-