---
title: "Anr"
description: "Capture events when the event loop is blocked and the application is no longer responding."
url: https://docs.sentry.io/platforms/javascript/guides/connect/configuration/integrations/anr/
---

# Anr | Sentry for Connect

**Deprecated**: This integration is deprecated. Please use the [`eventLoopBlockIntegration`](https://docs.sentry.io/platforms/javascript/guides/connect/configuration/integrations/anr/event-loop-block.md) instead for better performance and more comprehensive monitoring.

This integration only works in the Node.js runtime.

*Import name: `Sentry.anrIntegration`*

The `anrIntegration` captures Application Not Responding (ANR)/Event Loop Stall errors and reports them as Sentry events. For more details, see the documentation on [Event Loop Block Detection](https://docs.sentry.io/platforms/javascript/guides/connect/configuration/event-loop-block.md).

```JavaScript
Sentry.init({
  integrations: [Sentry.anrIntegration({ captureStackTrace: true })],
});
```
