You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For async requests, thread-bound resources should be cleaned in method afterConcurrentHandlingStarted of TracingHandlerInterceptor interceptor as is suggested in the document AsyncHandlerInterceptor.
In this case, I suppose active scope should be closed since this specific thread will be released back to the dispatch pool and possibly used later for subsequent requests. If the scope is not closed properly, the following requests cannot be traced.
Simply adding the following code at the end of afterConcurrentHandlingStarted makes it work,
For async requests, thread-bound resources should be cleaned in method
afterConcurrentHandlingStarted
ofTracingHandlerInterceptor
interceptor as is suggested in the document AsyncHandlerInterceptor.java-spring-web/opentracing-spring-web/src/main/java/io/opentracing/contrib/spring/web/interceptor/TracingHandlerInterceptor.java
Line 117 in 5262c01
In this case, I suppose active scope should be closed since this specific thread will be released back to the dispatch pool and possibly used later for subsequent requests. If the scope is not closed properly, the following requests cannot be traced.
Simply adding the following code at the end of
afterConcurrentHandlingStarted
makes it work,The text was updated successfully, but these errors were encountered: