@SneakyThrows
    @Get("/debugging/query/topology/getServiceInstanceTopology")
    public String getServiceInstanceTopology(@Param("startTime") String startTime,
                                             @Param("endTime") String endTime,
                                             @Param("step") String step,
                                             @Param("coldStage") Optional<Boolean> coldStage,
                                             @Param("clientService") String clientService,
                                             @Param("serverService") String serverService,
                                             @Param("clientServiceLayer") String clientServiceLayer,
                                             @Param("serverServiceLayer") String serverServiceLayer) {
        Duration duration = new Duration();
        duration.setStart(startTime);
        duration.setEnd(endTime);
        duration.setStep(Step.valueOf(step));
        coldStage.ifPresent(duration::setColdStage);
        String clientServiceId = IDManager.ServiceID.buildId(
            clientService, Layer.nameOf(clientServiceLayer).isNormal());
        String serverServiceId = IDManager.ServiceID.buildId(
            serverService, Layer.nameOf(serverServiceLayer).isNormal());
        ServiceInstanceTopology topology = topologyQuery.getServiceInstanceTopology(
            clientServiceId, serverServiceId, duration, true).join();
        DebuggingQueryInstanceTopologyRsp result = new DebuggingQueryInstanceTopologyRsp(
            topology.getNodes(), topology.getCalls(), transformTrace(topology.getDebuggingTrace()));
        return transToYAMLString(result);
    }
Only for BanyanDB, can be used to query the trace in the cold stage.
oap-server/server-query-plugin/status-query-plugin/src/main/java/org/apache/skywalking/oap/query/debug/DebuggingHTTPHandler.java