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

GET /api/v1/passport/health names its Server-Timing phases: session, read #5312

shipped production is serving it opened this has it
opened this

For: a slow passport health check says which side is slow.

Done:

  • [ ] The handler at src/http/passport_edge.ts marks session and read with timePhase/notePhase from src/core/route_timing.ts, as the timed API reads do.
  • [ ] A test (new test/passport-health-timing.test.ts, shaped like test/telemetry-reads-timing.test.ts) asserts both phase names appear in server-timing, and fails without the change.
  • [ ] The answer body is unchanged (test/passport-edge.test.ts still passes).

Files: src/http/passport_edge.ts, one new test. Risk: none; no behaviour change.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs