Log slow API requests with server spans and client timing
This commit is contained in:
@@ -102,7 +102,7 @@ func (s *Server) GetTaskDir(w http.ResponseWriter, r *http.Request, taskID strin
|
||||
for _, e := range listing.Entries {
|
||||
paths = append(paths, path.Join(real, e.Name))
|
||||
}
|
||||
ignored, err := git.Ignored(t.WorktreePath, paths)
|
||||
ignored, err := git.Ignored(r.Context(), t.WorktreePath, paths)
|
||||
if err != nil {
|
||||
writeError(w, http.StatusInternalServerError, err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user