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 2020/07/12 04:22:00 UTC

[GitHub] [skywalking] dengliming commented on a change in pull request #5086: Add support for spring webclient

dengliming commented on a change in pull request #5086:
URL: https://github.com/apache/skywalking/pull/5086#discussion_r453265174



##########
File path: test/plugin/scenarios/webflux-scenario/config/expectedData.yaml
##########
@@ -193,6 +193,66 @@ segmentItems:
         parentSpanId: 8, parentTraceSegmentId: not null, parentServiceInstance: not
           null, parentService: not null, traceId: not null}
       skipAnalysis: 'false'
+  - segmentId: not null
+    spans:
+    - operationName: /testcase/webclient/test1
+      operationId: 0
+      parentSpanId: -1
+      spanId: 0
+      spanLayer: Http
+      startTime: not null
+      endTime: not null
+      componentId: 67
+      isError: false
+      spanType: Entry
+      peer: ''
+      skipAnalysis: false
+      tags:
+      - {key: url, value: 'http://localhost:18080/testcase/webclient/test1'}
+      - {key: http.method, value: GET}
+      - {key: status_code, value: '200'}
+      refs:
+      - {parentEndpoint: /projectA/testcase, networkAddress: 'localhost:18080', refType: CrossProcess,
+        parentSpanId: 9, parentTraceSegmentId: not null, parentServiceInstance: not null, parentService: not null, traceId: not null}
+  - segmentId: not null
+    spans:
+    - operationName: /testcase/annotation/healthCheck

Review comment:
       Thanks for quick reply. I use it for webclient testcase. The following codeļ¼š
   ```
   @RequestMapping("/testcase/webclient/test1")
       public String test1() {
           Mono<String> resp = WebClient.builder().exchangeStrategies(ExchangeStrategies.builder()
                   .build())
                   .build()
                   .get().uri("http://" + hostBAddress + "/testcase/annotation/healthCheck")
                   .retrieve().bodyToMono(String.class);
           resp.subscribe();
           return "ok";
       }
   ```
   Would you mind sharing your tips here?




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

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