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 2022/03/14 11:10:44 UTC

[GitHub] [skywalking-java] sivern commented on a change in pull request #124: Mono.subscribeOn(Scheduler) method not yielding span

sivern commented on a change in pull request #124:
URL: https://github.com/apache/skywalking-java/pull/124#discussion_r825832704



##########
File path: test/plugin/scenarios/webflux-scenario/webflux-projectB-scenario/src/main/java/test/apache/skywalking/apm/testcase/sc/webflux/projectB/controller/DbOperate.java
##########
@@ -0,0 +1,15 @@
+package test.apache.skywalking.apm.testcase.sc.webflux.projectB.controller;
+
+import org.springframework.stereotype.Service;
+import reactor.core.publisher.Mono;
+import reactor.core.scheduler.Schedulers;
+
+
+@Service
+public class DbOperate {
+    // This method is to generate an annotation trace for testing

Review comment:
       In fact, after being processed by the Schedulers.elastic() method, all traces will be split into a single piece, so an Annotiation trace can be used here to simulate the subsequent span split. Later I will modify to h2 based DB access. 




-- 
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