SIGN IN SIGN UP

feat(android-sqlite): Add SentrySQLiteDriver (JAVA-275) (#5466)

feat(android-sqlite): Add SentrySQLiteDriver (JAVA-275)

Introduces support for AndroidX's SQLiteDriver via a new SentrySQLiteDriver wrapper.

SentrySQLiteDriver automatically creates spans for each SQL statement it executes. Its data scheme closely tracks that of SentrySupportSQLiteOpenHelper, which it's designed to replace. (Span duration is an important exception; see the SentrySQLiteStatement KDoc for more details.)

A key motivation behind Google's use of SQLiteDriver with Room 2.7+ was Kotlin Multiplatform support. We're careful to keep the SentrySQLiteDriver KMP-compatible as well, should we one day want to lift it into sentry-kotlin-multiplatform.

---

Co-authored-by: Angus Holder <7407345+angusholder@users.noreply.github.com>
A
arb committed
3eb7173bf3fbd040000b90276e47f41aed8b05db
Parent: 9d2f4e3
Committed by GitHub <noreply@github.com> on 6/16/2026, 6:09:41 AM