@SneakyThrows
    @Get("/debugging/query/topology/getEndpointDependencies")
    public String getEndpointDependencies(@Param("startTime") String startTime,
                                          @Param("endTime") String endTime,
                                          @Param("step") String step,
                                          @Param("coldStage") Optional<Boolean> coldStage,
                                          @Param("service") String service,
                                          @Param("serviceLayer") String serviceLayer,
                                          @Param("endpoint") String endpoint) {
        Duration duration = new Duration();
        duration.setStart(startTime);
        duration.setEnd(endTime);
        duration.setStep(Step.valueOf(step));
        coldStage.ifPresent(duration::setColdStage);
        String endpointId = IDManager.EndpointID.buildId(
            IDManager.ServiceID.buildId(service, Layer.nameOf(serviceLayer).isNormal()), endpoint);
        EndpointTopology topology = topologyQuery.getEndpointDependencies(endpointId, duration, true).join();
        DebuggingQueryEndpointTopologyRsp result = new DebuggingQueryEndpointTopologyRsp(
            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