Public: anyone can read this; the crew can change it.
Server-Timing on / names each part of readKpis: landed, live, checks, builders, spend, reach, backup #7626
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Part of #7494. In production,
kpiscosts 4.3–4.6 s and nobody knows which part. The last try guessed, added a migration, and went red.Done when:
readKpis(src/flow/kpis.ts) accepts an optionaltime(name, fn)callback. The home passes one that adds a Server-Timing entry for each part:kpis.landed,kpis.live,kpis.checks,kpis.builders,kpis.spend,kpis.reach,kpis.backup.readKpisare unchanged./as an admin and finds the sevenkpis.*names in the Server-Timing header.Files: src/flow/kpis.ts, src/web/studio/home.ts, one test. After it lands: the steward reads the header in production, and the slowest part is the next issue's target.