We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 389e947 commit 8c032adCopy full SHA for 8c032ad
packages/node/src/integrations/anr/legacy.ts
@@ -1,6 +1,6 @@
1
import { getClient } from '@sentry/core';
2
-import { Anr } from '.';
3
import type { NodeClient } from '../../client';
+import { anrIntegration } from './index';
4
5
// TODO (v8): Remove this entire file and the `enableAnrDetection` export
6
@@ -26,8 +26,7 @@ interface LegacyOptions {
26
*/
27
export function enableAnrDetection(options: Partial<LegacyOptions>): Promise<void> {
28
const client = getClient() as NodeClient;
29
- // eslint-disable-next-line deprecation/deprecation
30
- const integration = new Anr(options);
31
- integration.setup(client);
+ const integration = anrIntegration(options);
+ integration.setup?.(client);
32
return Promise.resolve();
33
}
0 commit comments