Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): PR lookup memo hits stop writing trace spans #31147

Closedonlydole(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/31147/headopened View on GitHub

Showing 1 changed file with 2 additions and 1 deletion.

x
0 of 1 viewed, 1 left
2 additions and 1 deletionapps/server/src/git/GitManager.tsModified
View file
@@ -2422,7 +2422,8 @@
string,
{ readonly readAtMs: number; readonly value: string | null }
- const rememberPrLookupGitState = Effect.fn("GitManager.rememberPrLookupGitState")(function* <E>(
+ // Runs for each git value on every PR lookup. A hit is a Map read, and a miss runs traced git.
+ const rememberPrLookupGitState = Effect.fnUntraced(function* <E>(
cwd: string,
key: string,
fresh: boolean,