You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@skywalking.apache.org by GitBox <gi...@apache.org> on 2018/03/01 06:53:17 UTC
[GitHub] peng-yongsheng opened a new pull request #854: "queryBasicTraces","queryTrace"
peng-yongsheng opened a new pull request #854: "queryBasicTraces","queryTrace"
URL: https://github.com/apache/incubator-skywalking/pull/854
1. Query segment id from global trace table by trace id.
2. Query BasicTrace from segment duration table by segment id.
### queryTrace
#### INPUT
```
{
queryTrace(traceId: "11377.11378.11379") {
spans {
traceId
segmentId
spanId
parentSpanId
applicationCode
startTime
endTime
operationName
type
peer
component
isError
layer
refs{
traceId
parentSpanId
parentSegmentId
type
}
logs{
time
data{
key
value
}
}
tags{
key
value
}
}
}
}
```
#### OUTPUT
```
{
"data": {
"queryBasicTraces": {
"total": 40,
"traces": [
{
"operationName": "/dubbox-case/case/dubbox-rest",
"duration": 2000,
"start": "1496282580001",
"isError": false
},
{
"operationName": "org.skywaking.apm.testcase.dubbo.services.GreetService.doBusiness()",
"duration": 1000,
"start": "1496282580501",
"isError": false
},
{
"operationName": "/dubbox-case/case/dubbox-rest",
"duration": 2000,
"start": "1496282580001",
"isError": false
},
{
"operationName": "org.skywaking.apm.testcase.dubbo.services.GreetService.doBusiness()",
"duration": 1000,
"start": "1496282580501",
"isError": false
},
{
"operationName": "org.skywaking.apm.testcase.dubbo.services.GreetService.doBusiness()",
"duration": 1000,
"start": "1496282580501",
"isError": false
}
]
}
}
}
```
### queryBasicTraces
#### INPUT
```
{
queryBasicTraces(condition: {paging: {pageSize: 5}, traceId: "11377.11378.11379"}) {
total
traces {
operationName
duration
start
isError
traceId
}
}
}
```
#### OUTPUT
```
{
"data": {
"queryBasicTraces": {
"total": 2,
"traces": [
{
"operationName": "/dubbox-case/case/dubbox-rest",
"duration": 2000,
"start": "1490976210001",
"isError": false
},
{
"operationName": "org.skywaking.apm.testcase.dubbo.services.GreetService.doBusiness()",
"duration": 1000,
"start": "1490976210501",
"isError": false
}
]
}
}
}
```
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services