Class TraceWebAspect
java.lang.Object
org.springframework.cloud.sleuth.instrument.web.TraceWebAspect
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:
-
ControllerRestOperations
-
Constructor Summary
ConstructorsConstructorDescriptionTraceWebAspect(Tracer tracer, CurrentTraceContext currentTraceContext, SpanNamer spanNamer) -
Method Summary
Modifier and TypeMethodDescriptionwrapWebAsyncTaskWithCorrelationId(org.aspectj.lang.ProceedingJoinPoint pjp) wrapWithCorrelationId(org.aspectj.lang.ProceedingJoinPoint pjp)