kezhenxu94 commented on pull request #21:
URL: https://github.com/apache/skywalking-nodejs/pull/21#issuecomment-753559580


   > > This doesn't seem to fix the bug of duplicate spans,
   > 
   > I need a test case I can use to be able to track this down locally on my 
side.
   
   ```shell
   $ pwd
   ~/workspace/skywalking-nodejs
   
   $ npx ts-node tests/plugins/axios/server.ts &
   
   $ npx ts-node tests/plugins/axios/client.ts &
   
   $ curl http://localhost:5001/axios
   ```
   
   And because of this generates invalid spans, the Web UI only renders the 
correct one, hence you need to see the raw spans in the storage, or via `curl` 
like this:
   
   ```
   curl 'http://localhost:8080/graphql' -X 'POST' \
     -H 'Content-Type: application/json;charset=utf-8' \
     --data-binary '{"query":"query queryTrace($traceId: ID!) {\n  trace: 
queryTrace(traceId: $traceId) {spans { traceId segmentId spanId  parentSpanId 
refs { traceId parentSegmentId parentSpanId type} serviceCode startTime endTime 
endpointName type peer component isError 
layer}}}","variables":{"traceId":"e3e4d04a95d74f6580f6a9bdec2f789b"}}'
   ```
   
   Replace the trace id with the one on the web ui


----------------------------------------------------------------
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:
[email protected]


Reply via email to