Interface AnrIntegrationOptions

interface AnrIntegrationOptions {
    anrThreshold: number;
    captureStackTrace: boolean;
    pollInterval: number;
    staticTags: { [key: string]: Primitive };
}

Properties

anrThreshold: number

Threshold in milliseconds to trigger an ANR event.

Defaults to 5000ms.

captureStackTrace: boolean

Whether to capture a stack trace when the ANR event is triggered.

Defaults to false.

This uses the node debugger which enables the inspector API and opens the required ports.

pollInterval: number

Interval to send heartbeat messages to the ANR worker.

Defaults to 50ms.

staticTags: { [key: string]: Primitive }

Tags to include with ANR events.