Monitoring Service: ensure service is ready before calling captureException
This commit is contained in:
@@ -25,5 +25,6 @@ export const onRequestError: Instrumentation.onRequestError = async (err) => {
|
|||||||
|
|
||||||
const service = await getServerMonitoringService();
|
const service = await getServerMonitoringService();
|
||||||
|
|
||||||
|
await service.ready();
|
||||||
await service.captureException(err as Error);
|
await service.captureException(err as Error);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user