@SneakyThrows
    @Get("/debugging/query/trace/queryTraceFromColdStage")
    public String queryTraceFromColdStage(@Param("traceId") String traceId,
                                          @Param("startTime") String startTime,
                                          @Param("endTime") String endTime,
                                          @Param("step") String step) {
        Duration duration = new Duration();
        duration.setStart(startTime);
        duration.setEnd(endTime);
        duration.setStep(Step.valueOf(step));
        duration.setColdStage(true);
        Trace trace = traceQuery.queryTraceFromColdStage(traceId, duration, true).join();
        DebuggingQueryTraceRsp result = new DebuggingQueryTraceRsp(
            trace.getSpans(), transformTrace(trace.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