This commit is contained in:
2025-07-18 16:10:13 +03:00
parent 5487242bbe
commit ab0834149d
13 changed files with 58 additions and 24 deletions

View File

@@ -21,10 +21,10 @@ export async function register() {
* @param err
*/
export const onRequestError: Instrumentation.onRequestError = async (err) => {
const { getServerMonitoringService } = await import('@kit/monitoring/server');
// const { getServerMonitoringService } = await import('@kit/monitoring/server');
const service = await getServerMonitoringService();
// const service = await getServerMonitoringService();
await service.ready();
await service.captureException(err as Error);
// await service.ready();
// await service.captureException(err as Error);
};