cyforkk opened a new pull request, #817:
URL: https://github.com/apache/skywalking-java/pull/817

   ## Summary
   
   This PR adds tracing context propagation for ThreadPoolExecutor batch 
methods.
   
   ## Changes
   
   - Added `ThreadPoolExecutorInvokeInterceptor` to capture and restore tracing 
context
   - Added `ThreadPoolExecutorInstrumentation` to intercept:
     - `invokeAll(Collection<? extends Callable<T>> tasks)`
     - `invokeAll(Collection<? extends Callable<T>> tasks, long timeout, 
TimeUnit unit)`
     - `invokeAny(Collection<? extends Callable<T>> tasks)`
     - `invokeAny(Collection<? extends Callable<T>> tasks, long timeout, 
TimeUnit unit)`
   - Registered the new interceptor in `skywalking-plugin.def`
   
   ## How it works
   
   The interceptor captures the active tracing context before the method call 
and wraps
   each Callable in the collection to restore the context when executed.
   
   ## Related
   
   Fixes apache/skywalking#13945
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to