fix: add comprehensive error handling and logging to api and web

Wrap all async API route handlers and services in try/catch blocks,
piping errors to the @nhcarrigan/logger telemetry service. Add a
frontend logError utility, React ErrorBoundary, and overridden console
to forward all unhandled client-side errors to the backend telemetry
endpoint.
This commit is contained in:
2026-03-09 18:57:56 -07:00
committed by Naomi Carrigan
parent 11e97325cb
commit 66413c5e21
30 changed files with 2297 additions and 1724 deletions
+8
View File
@@ -23,6 +23,9 @@ importers:
'@hono/node-server':
specifier: 1.13.7
version: 1.13.7(hono@4.7.4)
'@nhcarrigan/logger':
specifier: 1.1.1
version: 1.1.1
'@prisma/client':
specifier: 6.5.0
version: 6.5.0(prisma@6.5.0(typescript@5.8.2))(typescript@5.8.2)
@@ -689,6 +692,9 @@ packages:
typescript: '>=5'
vitest: '>=2'
'@nhcarrigan/logger@1.1.1':
resolution: {integrity: sha512-P6OEQFHDtf6psybYGljuCxkSW6DLQCsx1aZZ3w4YKBXHBFjDbhuvpM9K1kPhVN48hakitx2WPLEoIFr6YZELYw==}
'@nhcarrigan/typescript-config@4.0.0':
resolution: {integrity: sha512-969HVha7A/Sg77fuMwOm6p14a+7C5iE6g55OD71srqwKIgksQl+Ex/hAI/pyzTQFDQ/FBJbpnHlR4Ov25QV/rw==}
engines: {node: '20', pnpm: '9'}
@@ -3490,6 +3496,8 @@ snapshots:
- eslint-import-resolver-webpack
- supports-color
'@nhcarrigan/logger@1.1.1': {}
'@nhcarrigan/typescript-config@4.0.0(typescript@5.8.2)':
dependencies:
typescript: 5.8.2