Log slow API requests with server spans and client timing
This commit is contained in:
@@ -223,7 +223,7 @@ func pushLanded(ctx context.Context, project api.Project, commit string) (bool,
|
||||
if err != nil {
|
||||
return false, &unfinishedMergeError{fmt.Errorf("checking whether %s reached %s failed: %w", commit, target, err)}
|
||||
}
|
||||
landed, err := git.IsAncestor(project.RepoPath, commit, target)
|
||||
landed, err := git.IsAncestor(ctx, project.RepoPath, commit, target)
|
||||
if err != nil {
|
||||
return false, &unfinishedMergeError{fmt.Errorf("checking whether %s reached %s failed: %w", commit, target, err)}
|
||||
}
|
||||
@@ -405,7 +405,7 @@ func (m *Manager) RemoveTask(ctx context.Context, task api.Task, project api.Pro
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return git.RemoveWorktree(project.RepoPath, task.WorktreePath, task.Branch)
|
||||
return git.RemoveWorktree(ctx, project.RepoPath, task.WorktreePath, task.Branch)
|
||||
}
|
||||
|
||||
type setTitlesArgs struct {
|
||||
|
||||
Reference in New Issue
Block a user