Prepare for support performance trace (#33286)

For #32973
This commit is contained in:
wxiaoguang authored and GitHub committed 2025-01-15 20:05:18 +00:00
1 parent 6659a381ea
commit b15d01b0ce
6 files changed
+28 -28

No files matched your search

+1 -1
View File
@@ -213,7 +213,7 @@ func NormalRoutes() *web.Router {
}
r.NotFound(func(w http.ResponseWriter, req *http.Request) {
routing.UpdateFuncInfo(req.Context(), routing.GetFuncInfo(http.NotFound, "GlobalNotFound"))
defer routing.RecordFuncInfo(req.Context(), routing.GetFuncInfo(http.NotFound, "GlobalNotFound"))()
http.NotFound(w, req)
})
return r