Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

feat(api): add more captureExceptions

Gergő Móricz5ca36fe9fcf6
diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts
index 6a6437b3e..0674a46f0 100644
--- a/apps/api/src/index.ts
+++ b/apps/api/src/index.ts
@@ -119,6 +119,7 @@ if (cluster.isMaster) {
waitingJobs,
});
} catch (error) {
+ Sentry.captureException(error);
Logger.error(error);
return res.status(500).json({ error: error.message });
}
@@ -170,6 +171,7 @@ if (cluster.isMaster) {
}, timeout);
}
} catch (error) {
+ Sentry.captureException(error);
Logger.debug(error);
}
};