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 2021/10/22 11:23:54 UTC

[GitHub] [skywalking] will2020-power opened a new issue #7991: [Bug] Can not trace CompletableFuture thenApply/thenApplyAsync

will2020-power opened a new issue #7991:
URL: https://github.com/apache/skywalking/issues/7991


   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar feature requirement.
   
   
   ### Description
   
   Can not  trace CompletableFuture thenApply/thenApplyAsync 
   
   refer to https://skywalking.apache.org/docs/skywalking-java/latest/en/setup/service-agent/java-agent/application-toolkit-trace-cross-thread/ 
   
   I can get  TaskA and TaskB trace, but TaskC is miss
   
   
   
   
   
   ### Use case
   
   CompletableFuture<String> result1 = CompletableFuture.supplyAsync(SupplierWrapper.of(() -> new RestTemplate().getForObject("TaskA", String.class)));
   
   CompletableFuture<String> result2 = CompletableFuture.supplyAsync(SupplierWrapper.of(() -> new RestTemplate().getForObject("TaskB", String.class)));
   
   CompletableFuture<Object> result3 = result1.thenApply(e -> new RestTemplate().getForObject("taskC", String.class));
   
   CompletableFuture.allOf(result2,result3).join();
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] will2020-power commented on issue #7991: [Bug] Can not trace CompletableFuture thenApply/thenApplyAsync

Posted by GitBox <gi...@apache.org>.
will2020-power commented on issue #7991:
URL: https://github.com/apache/skywalking/issues/7991#issuecomment-949567572


   > I think we don't have lambda wrapper for now.
   
   thanks for your reply.


-- 
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: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] will2020-power closed issue #7991: [Bug] Can not trace CompletableFuture thenApply/thenApplyAsync

Posted by GitBox <gi...@apache.org>.
will2020-power closed issue #7991:
URL: https://github.com/apache/skywalking/issues/7991


   


-- 
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: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #7991: [Bug] Can not trace CompletableFuture thenApply/thenApplyAsync

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #7991:
URL: https://github.com/apache/skywalking/issues/7991#issuecomment-949540649


   I think we don't have lambda wrapper for now.


-- 
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: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #7991: [Bug] Can not trace CompletableFuture thenApply/thenApplyAsync

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #7991:
URL: https://github.com/apache/skywalking/issues/7991#issuecomment-949541396


   If anyone wants to contribute, welcome to send a pull request.


-- 
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: notifications-unsubscribe@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org