Monitoring Service: ensure service is ready before calling captureException

This commit is contained in:
gbuomprisco
2024-10-24 00:50:23 +08:00
parent 4134315076
commit 8d1cdcfa11

View File

@@ -25,5 +25,6 @@ export const onRequestError: Instrumentation.onRequestError = async (err) => {
const service = await getServerMonitoringService();
await service.ready();
await service.captureException(err as Error);
};