Anr
在事件循环被阻塞且应用程序不再响应时捕获事件。
此集成仅在 Node.js 运行时中工作。
Import name: Sentry.anrIntegration
anrIntegration
捕获应用程序无响应 (ANR) / 事件循环停滞错误,并将它们作为 Sentry 事件报告。更多详情,请参阅 ANR 的文档。
Copied
Sentry.init({
integrations: [Sentry.anrIntegration({ captureStackTrace: true })],
});