This is an automated email from the ASF dual-hosted git repository.

wankai pushed a commit to branch trace-trace
in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git

commit 858495c3b51ec3a0f77bb1aa2e2483363777c8e0
Author: wankai123 <wankai...@foxmail.com>
AuthorDate: Thu Jun 27 08:33:04 2024 +0800

    Support tracing trace query
---
 trace.graphqls | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/trace.graphqls b/trace.graphqls
index eac965a..314f266 100644
--- a/trace.graphqls
+++ b/trace.graphqls
@@ -17,6 +17,8 @@
 # The list of traces
 type TraceBrief {
     traces: [BasicTrace!]!
+    #For OAP internal query debugging
+    debuggingTrace: DebuggingTrace
 }
 
 # Trace basic info
@@ -68,6 +70,8 @@ enum QueryOrder {
 # The trace represents a distributed trace, includes all segments and spans.
 type Trace {
     spans: [Span!]!
+    #For OAP internal query debugging
+    debuggingTrace: DebuggingTrace
 }
 
 type Span {
@@ -167,11 +171,12 @@ type SpanAttachedEvent {
     summary: [KeyNumericValue!]!
 }
 
+# Param, if debug is true will enable the query tracing and return 
DebuggingTrace in the result.
 extend type Query {
     # Search segment list with given conditions
-    queryBasicTraces(condition: TraceQueryCondition): TraceBrief
+    queryBasicTraces(condition: TraceQueryCondition, debug: Boolean): 
TraceBrief
     # Read the specific trace ID with given trace ID
-    queryTrace(traceId: ID!): Trace
+    queryTrace(traceId: ID!, debug: Boolean): Trace
     # Read the list of searchable keys
     queryTraceTagAutocompleteKeys(duration: Duration!):[String!]
     # Search the available value options of the given key.

Reply via email to