Log slow API requests with server spans and client timing
This commit is contained in:
@@ -278,7 +278,7 @@ func (m *Manager) leadTools(l *live) []mcp.Tool {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
base, err = git.Head(from.WorktreePath)
|
||||
base, err = git.Head(ctx, from.WorktreePath)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
@@ -970,7 +970,7 @@ func (m *Manager) listTasksText(ctx context.Context) (string, error) {
|
||||
if !listed {
|
||||
b.WriteString("- no active tasks\n")
|
||||
}
|
||||
src, found, err := git.ReadFile(p.RepoPath, p.DefaultBranch, todo.File)
|
||||
src, found, err := git.ReadFile(ctx, p.RepoPath, p.DefaultBranch, todo.File)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user