ANR Instrumentation
Generates: Events (Log Records)
Automatically detects Application Not Responding (ANR) conditions by polling the UI thread every second. If 5 consecutive checks fail, an ANR is detected. Only active when the app is in the foreground.
Configuration
Enabled by default. To disable:
PulseSDK.INSTANCE.initialize(
application = this,
apiKey = "your-api-key",
dataCollectionState = PulseDataCollectionConsent.ALLOWED,
) {
anrReporter { enabled(false) }
}
Attributes
| Attribute | Description | Always Present |
|---|---|---|
pulse.type | "device.anr" | ✅ |
exception.stacktrace | Main thread stack trace | ✅ |
thread.id | Main thread ID | ✅ |
thread.name | Main thread name ("main") | ✅ |
screen.name | Current screen | ⚠️ If available |