wu-sheng commented on issue #4399: support http api for upstream trace.
URL: https://github.com/apache/skywalking/pull/4399#issuecomment-590064256
 
 
   By following @JaredTan95 feedback, I just re-format the trace_id and 
segment_id to adopt the proto
   
   ```json
   {
     "spans": [
       {
         "operationName": "/tier2/lb",
         "startTime": 1582461179910,
         "tags": {},
         "endTime": 1582461179922,
         "spanType": "Exit",
         "logs": {},
         "spanId": 1,
         "isError": false,
         "parentSpanId": 0,
         "componentId": 6000,
         "peer": "User Service Name-nginx:upstream_ip:port",
         "spanLayer": "HTTP"
       },
       {
         "operationName": "/tier2/lb",
         "startTime": 1582461179910,
         "tags": [
           {
             "key": "http.method",
             "value": "GET"
           },
           {
             "key": "http.params",
             "value": "http://127.0.0.1/tier2/lb";
           }
         ],
         "endTime": 1582461179922,
         "spanType": "Entry",
         "logs": {},
         "spanId": 0,
         "isError": false,
         "parentSpanId": -1,
         "componentId": 6000,
         "refs": [
           {
             "parentTraceSegmentId": {
               "idParts": [
                 1582461179038,
                 794206293,
                 69887
               ]
             },
             "parentEndpointId": 0,
             "entryEndpointId": 0,
             "parentServiceInstanceId": 1,
             "parentEndpoint": "/ingress",
             "networkAddress": "#User Service Name-nginx:upstream_ip:port",
             "parentSpanId": 1,
             "entryServiceInstanceId": 1,
             "networkAddressId": 0,
             "entryEndpoint": "/ingress"
           }
         ],
         "spanLayer": "HTTP"
       }
     ],
     "serviceInstanceId": 1,
     "serviceId": 1,
     "traceSegmentId": {
       "idParts": [
         1582461179044,
         794206293,
         69887
       ]
     },
     "globalTraceIds": [
       {
         "idParts": [
           1582461179038,
           794206293,
           69887
         ]
       }
     ]
   }
   ```

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


With regards,
Apache Git Services

Reply via email to