wip
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user