diff --git a/cmd/query/app/http_handler.go b/cmd/query/app/http_handler.go index 4bb81ccd407..6b74f3aa3e9 100644 --- a/cmd/query/app/http_handler.go +++ b/cmd/query/app/http_handler.go @@ -490,6 +490,8 @@ func (aH *APIHandler) archiveTrace(w http.ResponseWriter, r *http.Request) { if !ok { return } + + // QueryService.ArchiveTrace can now archive this traceID. err := aH.queryService.ArchiveTrace(r.Context(), query) if errors.Is(err, spanstore.ErrTraceNotFound) { aH.handleError(w, err, http.StatusNotFound)