- *
- * This creates a child from identifiers extracted from the message headers, or a new - * span if one couldn't be extracted. + * name and is not started. This creates a child from identifiers extracted from the + * message headers, or a new span if one couldn't be extracted. * @param message message to use for span creation * @return span to be created */ diff --git a/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/instrument/web/TraceWebAspect.java b/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/instrument/web/TraceWebAspect.java index f3425d745..b77955644 100644 --- a/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/instrument/web/TraceWebAspect.java +++ b/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/instrument/web/TraceWebAspect.java @@ -32,19 +32,14 @@ import org.springframework.cloud.sleuth.instrument.async.TraceCallable; import org.springframework.web.context.request.async.WebAsyncTask; /** - * Aspect that adds tracing to - *
- *
- * {@code RestController} annotated classes with public {@link Callable} methods - * {@link org.springframework.stereotype.Controller} annotated classes with public - * {@link Callable} methods {@link org.springframework.stereotype.Controller} or - * {@code RestController} annotated classes with public {@link WebAsyncTask} methods - *- *
+ * Aspect that adds tracing. {@code RestController} annotated classes with public + * {@link Callable} methods {@link org.springframework.stereotype.Controller} annotated + * classes with public {@link Callable} methods + * {@link org.springframework.stereotype.Controller} or {@code RestController} annotated + * classes with public {@link WebAsyncTask} methods. + * * For controllers an around aspect is created that wraps the {@link Callable#call()} - * method execution in {@link TraceCallable} - *- *
+ * method execution in {@link 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