This is an automated email from the ASF dual-hosted git repository. wankai pushed a commit to branch topology-trace in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git
commit a9779ed5a3ae678127edb42763042291f7699786 Author: wankai123 <[email protected]> AuthorDate: Thu Jul 4 11:05:18 2024 +0800 support topology query trace --- 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 }
