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 e93484a support topology query trace (#136)
e93484a is described below
commit e93484a89c9d59fda8303f1dc3cac78e64f56bf7
Author: Wan Kai <[email protected]>
AuthorDate: Thu Jul 4 11:58:32 2024 +0800
support topology query trace (#136)
---
topology.graphqls | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/topology.graphqls b/topology.graphqls
index 4c74bfe..0bb68b9 100644
--- a/topology.graphqls
+++ b/topology.graphqls
@@ -18,23 +18,28 @@
type Topology {
nodes: [Node!]!
calls: [Call!]!
+ debuggingTrace: DebuggingTrace
}
# The instance topology based on the given serviceIds
type ServiceInstanceTopology {
nodes: [ServiceInstanceNode!]!
calls: [Call!]!
+ debuggingTrace: DebuggingTrace
}
# The endpoint topology
type EndpointTopology {
nodes: [EndpointNode!]!
calls: [Call!]!
+ debuggingTrace: DebuggingTrace
}
+# The process topology
type ProcessTopology {
nodes: [ProcessNode!]!
calls: [Call!]!
+ debuggingTrace: DebuggingTrace
}
# Node in Topology
@@ -122,21 +127,22 @@ type Call {
detectPoints: [DetectPoint!]!
}
+# Param, if debug is true will enable the query tracing and return
DebuggingTrace in the result.
extend type Query {
# Query the global topology
# When layer is specified, the topology of this layer would be queried
- getGlobalTopology(duration: Duration!, layer: String): Topology
+ getGlobalTopology(duration: Duration!, layer: String, debug: Boolean):
Topology
# Query the topology, based on the given service
- getServiceTopology(serviceId: ID!, duration: Duration!): Topology
+ getServiceTopology(serviceId: ID!, duration: Duration!, debug: Boolean):
Topology
# Query the topology, based on the given services.
# `#getServiceTopology` could be replaced by this.
- getServicesTopology(serviceIds: [ID!]!, duration: Duration!): Topology
+ getServicesTopology(serviceIds: [ID!]!, duration: Duration!, debug:
Boolean): Topology
# Query the instance topology, based on the given clientServiceId and
serverServiceId
- getServiceInstanceTopology(clientServiceId: ID!, serverServiceId: ID!,
duration: Duration!): ServiceInstanceTopology
+ getServiceInstanceTopology(clientServiceId: ID!, serverServiceId: ID!,
duration: Duration!, debug: Boolean): ServiceInstanceTopology
# Query the topology, based on the given endpoint
getEndpointTopology(endpointId: ID!, duration: Duration!): Topology
# v2 of getEndpointTopology
- getEndpointDependencies(endpointId: ID!, duration: Duration!):
EndpointTopology
+ getEndpointDependencies(endpointId: ID!, duration: Duration!, debug:
Boolean): EndpointTopology
# Query the topology, based on the given instance
- getProcessTopology(serviceInstanceId: ID!, duration: Duration!):
ProcessTopology
+ getProcessTopology(serviceInstanceId: ID!, duration: Duration!, debug:
Boolean): ProcessTopology
}