From 8d1cdcfa11ad4fa1c2fa8f8770f0fb47e93033a8 Mon Sep 17 00:00:00 2001 From: gbuomprisco Date: Thu, 24 Oct 2024 00:50:23 +0800 Subject: [PATCH] Monitoring Service: ensure service is ready before calling captureException --- apps/web/instrumentation.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/instrumentation.ts b/apps/web/instrumentation.ts index 981321d32..7fb6d8ffc 100644 --- a/apps/web/instrumentation.ts +++ b/apps/web/instrumentation.ts @@ -25,5 +25,6 @@ export const onRequestError: Instrumentation.onRequestError = async (err) => { const service = await getServerMonitoringService(); + await service.ready(); await service.captureException(err as Error); };