feat: add duration logging to WS, MediaWiki, geocoding, and queue operations#93
Conversation
…rations Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Confidence Score: 5/5Safe to merge — all changes are additive logging instrumentation with no mutations to business logic. Every change is a timing/logging addition: new timestamps, string formatting helpers, and log lines. No data paths, persistence operations, or auth flows are altered. The WeakMap approach for request timings is correct. The try/catch in ws.ts correctly re-throws after logging, preserving existing error propagation. Tests are updated to mock the new formatDelayMs export. No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "fix: use WeakMap for request timing to f..." | Re-trigger Greptile |
…r timing Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Addressed both issues:
— Claude Sonnet 4.6 |
elapsed(start: bigint)andformatDuration(ns: number)fromlogger.tsas shared timing utilitiesws.ts(subscriptions excluded); format:[ws] MESSAGE_TYPE from username | 45msclient.ts:createPage,getCategoryMembers,uploadFile,applySdc,nullEdit,replaceCategoryInPagegeocoding.tsformatDelayMsinqueue.ts, reused inupload.worker.tsLogStoretype and(store as LogStore)casts — Elysia infers store type correctly through method chaining— Claude Sonnet 4.6