GH-621 - Make sure we always place the ModuleEntryInterceptor after the AsyncAnnotationAdvisor.
To properly create spans for the actual method invocation, not the async dispatch.
This commit is contained in:
@@ -17,10 +17,12 @@ package example;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.scheduling.annotation.EnableAsync;
|
||||
|
||||
/**
|
||||
* @author Oliver Drotbohm
|
||||
*/
|
||||
@EnableAsync
|
||||
@SpringBootApplication
|
||||
public class ExampleApplication {
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package example.sample;
|
||||
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
@@ -23,5 +24,6 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
public class SampleComponent {
|
||||
|
||||
void someMethod() {}
|
||||
@Async
|
||||
public void someMethod() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user