You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wa...@apache.org on 2024/06/18 03:33:59 UTC

(skywalking-query-protocol) branch mqe-trace created (now 3654791)

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

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


      at 3654791  Add mqe query trace protocol

This branch includes the following new commits:

     new 3654791  Add mqe query trace protocol

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(skywalking-query-protocol) 01/01: Add mqe query trace protocol

Posted by wa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 3654791152632b783e7b03ed28db42fa9571a616
Author: wankai123 <wa...@foxmail.com>
AuthorDate: Tue Jun 18 11:33:40 2024 +0800

    Add mqe query trace protocol
---
 common.graphqls     | 23 +++++++++++++++++++++++
 metrics-v3.graphqls |  4 ++--
 2 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/common.graphqls b/common.graphqls
index cd798c0..98bd655 100644
--- a/common.graphqls
+++ b/common.graphqls
@@ -125,6 +125,29 @@ type HealthStatus {
     details: String
 }
 
+# The Span for OAP internal debugging.
+# All time is in nanoseconds.
+type DebuggingSpan {
+    spanId: Int!
+    parentSpanId: Int!
+    operation: String!
+    startTime: Long!
+    endTime: Long!
+    duration: Long!
+    msg: String!
+    error: String
+}
+
+# The Trace for OAP internal debugging.
+type DebuggingTrace {
+    traceId: String!
+    condition: String!
+    startTime: Long!
+    endTime: Long!
+    duration: Long!
+    spans: [DebuggingSpan!]!
+}
+
 extend type Query {
     # Query Health Checker module for the status of OAP server
     checkHealth: HealthStatus!
diff --git a/metrics-v3.graphqls b/metrics-v3.graphqls
index 627dfdd..173c0b0 100644
--- a/metrics-v3.graphqls
+++ b/metrics-v3.graphqls
@@ -90,14 +90,14 @@ type ExpressionResult {
     # When type == ExpressionResultType.UNKNOWN,
     # the error message includes the expression resolving errors.
     error: String
+    debuggingTrace: DebuggingTrace
 }
 
-
 extend type Query {
     # Metrics definition metadata query. Response the metrics type which determines the suitable query methods.
     typeOfMetrics(name: String!): MetricsType!
     # Get the list of all available metrics in the current OAP server.
     # Param, regex, could be used to filter the metrics by name.
     listMetrics(regex: String): [MetricDefinition!]!
-    execExpression(expression: String!, entity: Entity!, duration: Duration!): ExpressionResult!
+    execExpression(expression: String!, entity: Entity!, duration: Duration!, debug: Boolean, dumpDBRsp: Boolean): ExpressionResult!
 }