Skip to main content

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

AttributeDescriptionAlways Present
pulse.type"device.anr"
exception.stacktraceMain thread stack trace
thread.idMain thread ID
thread.nameMain thread name ("main")
screen.nameCurrent screen⚠️ If available