JaredTan95 opened a new issue #2150: [Proposal] Make Traces Data Query  
association  with serviceInstanceId
URL: https://github.com/apache/incubator-skywalking/issues/2150
 
 
   Hi, Based on the existing `QraphQL`  API, we can query traces with 
serviceInstanceId. @TinyAllen ,If you are interesting about this, the following 
information may be helpful to build our UI query:
   1、`getServiceInstances` `QraphQL`  API:
   
   ```bash
   getServiceInstances(duration: $duration, serviceId: $serviceId) {
         key: id
         name
         attributes {
           name
           value
         }
         language
       }
   ```
   
   2、`queryBasicTraces` `QraphQL`  API:
   
   ```bash
   {"query":"query BasicTraces($condition: TraceQueryCondition) {
       queryBasicTraces(condition: $condition) {
         traces {
           key: segmentId
           endpointNames
           duration
           start
           isError
           traceIds
         }
         total
       }
     }"
     ,"variables":{
       "condition": {
           "serviceId": "2",
           "serviceInstanceId":"2",
           "traceState": "ALL",
           "queryOrder": "BY_START_TIME",
           "queryDuration": {
               "start": "2019-01-11 2251",
               "end": "2019-01-11 2254",
               "step": "MINUTE"
           },
           "paging": {
               "pageNum": 1,
               "pageSize": 20,
               "needTotal": true
           }
       }
   }
   }
   ```
   
   CC @wu-sheng 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to