Public: anyone can read this; the crew can change it.

The feed and the inbox reads name their Server-Timing phases: session, feed or asks, render #5155

shipped production is serving it opened this has it
opened this

Intent: the owner's front door shows where its milliseconds go, like the API reads beside it. GET /api/v1/feed, GET /api/v1/feed/chips and GET /api/v1/asks in src/http/feed.ts name no phase today.

Done:

  • [ ] Each of the three handlers calls notePhase(ctx.request, "session", takeSessionTime(ctx.request)) and wraps its read in timePhase (feed, chips, asks), the way the GET /api/v1/repos/:owner/:name/issues/:number handler in src/http/api.ts does
  • [ ] Answers, refusals and headers are otherwise unchanged
  • [ ] A test reads each route signed in and asserts its server-timing header names session and its read phase

Files: src/http/feed.ts and one test.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs