skywalking icon indicating copy to clipboard operation
skywalking copied to clipboard

how can trace action in parallelStream or parallel

Open xu1009 opened this issue 5 years ago • 1 comments

Please answer these questions before submitting your issue.

  • Why do you submit this issue?
  • [1 ] Question or discussion
  • [ ] Bug
  • [ ] Requirement
  • [ ] Feature or performance improvement

Question

  • What do you want to know?

when use parallelStream or paralle cross thread in project, how should do to tarce action

like this,

  IntStream.range(1, 10).parallel().forEach(it -> {
           httpclient.post(xxx);
    });

when i use custom thread pool, skywalking can use @TraceCrossThread to trace, but use parallelStream or paralle,can trace?

xu1009 avatar Apr 13 '21 13:04 xu1009

when i use custom thread pool, skywalking can use @TraceCrossThread to trace, but use parallelStream or paralle,can trace?

We are clear in the plugin development document about how we do for async mode. Read it, we don't explain the duplicated things.

wu-sheng avatar Apr 13 '21 23:04 wu-sheng