You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by wu...@apache.org on 2018/01/12 15:28:33 UTC
[incubator-skywalking] branch fix/graphql/node-nullable updated:
Update trace type.
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch fix/graphql/node-nullable
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking.git
The following commit(s) were added to refs/heads/fix/graphql/node-nullable by this push:
new 8f260f8 Update trace type.
8f260f8 is described below
commit 8f260f8eb1ef373791febf686c39bc8dade8c19d
Author: wusheng <wu...@foxmail.com>
AuthorDate: Fri Jan 12 23:28:21 2018 +0800
Update trace type.
---
.../src/main/resources/ui-graphql/trace.graphqls | 25 +++++++++++-----------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/trace.graphqls b/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/trace.graphqls
index b52ea0f..d867cab 100644
--- a/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/trace.graphqls
+++ b/apm-protocol/apm-ui-protocol/src/main/resources/ui-graphql/trace.graphqls
@@ -34,21 +34,14 @@ enum QueryOrder {
# The trace represents a distributed trace, includes all segments and spans.
type Trace {
- traceId: ID!
- segments: [Segment!]!
-}
-
-type Segment {
- segmentId: ID!
- appName: String!
- isSizeLimited: Boolean!
spans: [Span!]!
}
type Span {
- refs: [Ref!]!
+ traceId: ID!
+ segmentId: ID!
spanId: Int!
- parentSpanId: Int!
+ refs: [Ref!]!
startTime: Long!
endTime: Long!
operationName: String
@@ -65,12 +58,20 @@ type Span {
}
# Ref represents the link between the segment and its parents.
+# The parent(ref) may not exists, which means batch process.
+# The UI should display a list, representing the other trace IDs.
type Ref {
+ traceId: ID!
parentSegmentId: ID!
parentSpanId: Int!
# Ref type represents why did the ref happen.
# Include: 1) CrossProcess 2) CrossThread
- type: String!
+ type: RefType!
+}
+
+enum RefType {
+ CROSS_PROCESS,
+ CROSS_THREAD
}
type KeyValue {
@@ -86,4 +87,4 @@ type LogEntity {
extend type Query {
queryBasicTraces(condition: TraceQueryCondition): TraceBrief
queryTrace(traceId: ID!): Trace
-}
\ No newline at end of file
+}
--
To stop receiving notification emails like this one, please contact
['"commits@skywalking.apache.org" <co...@skywalking.apache.org>'].