This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git
The following commit(s) were added to refs/heads/master by this push:
new 0fc121e Add mqe query trace protocol (#133)
0fc121e is described below
commit 0fc121eb7dfb53077f95ada6dcf9781a0363182d
Author: Wan Kai <[email protected]>
AuthorDate: Tue Jun 18 11:42:08 2024 +0800
Add mqe query trace protocol (#133)
---
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!
}