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:
Oliver Drotbohm
2024-05-21 23:59:29 +02:00
parent f3b012d97b
commit c80c3e02bb
7 changed files with 141 additions and 19 deletions

View File

@@ -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 {

View File

@@ -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() {}
}