public CompletableFuture<ProcessTopology> getProcessTopology(final String instanceId, final Duration duration, final boolean debug) {
        return queryAsync(() -> {
            DebuggingTraceContext traceContext = new DebuggingTraceContext(
                "InstanceId: " + instanceId + ", Duration: " + duration, debug, false);
            DebuggingTraceContext.TRACE_CONTEXT.set(traceContext);
            DebuggingSpan span = traceContext.createSpan("Query process topology");
            try {
                ProcessTopology topology = getQueryService().getProcessTopology(instanceId, duration);
                if (debug) {
                    topology.setDebuggingTrace(traceContext.getExecTrace());
                }
                return topology;
            } finally {
                traceContext.stopSpan(span);
                traceContext.stopTrace();
                TRACE_CONTEXT.remove();
            }
        });
    }
Replaced by {@link #getEndpointDependencies(String, Duration, boolean)}
oap-server/server-query-plugin/query-graphql-plugin/src/main/java/org/apache/skywalking/oap/query/graphql/resolver/TopologyQuery.java