You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2018/05/24 06:26:59 UTC

[GitHub] carlvine500 commented on issue #462: [Agent] Plugin for Spring ThreadPoolTaskExecutor

carlvine500 commented on issue #462: [Agent] Plugin for Spring ThreadPoolTaskExecutor
URL: https://github.com/apache/incubator-skywalking/issues/462#issuecomment-391603189
 
 
   @wu-sheng I think it's already supported , @wtj199101 follow my example:
   ```
           ExecutorService threadPool = Executors.newFixedThreadPool(1);
   
           // your code
           threadPool.execute(() -> {
               try {
                   //
               } catch (Exception e) {
                   //
               }
           });
          
           // your code with trace across thread
           threadPool.execute(RunnableWrapper.of(() -> {
               try {
                   //
               } catch (Exception e) {
                   //
               }
           }));
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services