-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Room DB instrumentation does not work with custom SQLite open helper #234
Comments
Thanks a lot for trying the new functionality out, really appreciate that. Unfortunately, at the moment we only support the standard Room setup (i.e. when it's backed by androidx.sqlite lib). This is a good enhancement though, we may consider adding a support in the future. I've updated docs mentioning your case. |
Interesting, I thought the bytecode instrumentation was being done at the open helper level, not at the sqlite level itself. Will keep an eye out if this enhancement ever makes it into the library. In the meantime, would you be able to suggest workarounds we can do to instrument our current setup on Sentry? |
Yeah this is a good point, perhaps, we should switch over to that approach, as we can cover all integrations with that. Still would need to do a feasibility check first. You should still see the room spans in the Sentry Dashboard at the moment ( return FrameworkSQLiteDatabase(db) since it accepts a delegate. Not sure if it'd break any requery logic though |
@romtsn Nope, the spans don't show up. The only spans which show are the ones for the Android workmanager database, which are managed on a platform SQLite version. |
@vinaysshenoy with the next version of the gradle plugin (3.11.0) we'll be automatically instrumenting any class that implements We'll ship the new version tomorrow, please let us know if the new instrumentation is gonna work for you. Closed by #502. |
Android Gradle Plugin:
7.0.3
Gradle:
7.3
Optimizer:
Have you created the sentry.properties file?
app/src/release/resources
SDKs:
I have the following issue:
Room database instrumentation does not instrument database queries for custom SQLite open helper.
In our project, we package our version of SQLite using https://github.com/requery/sqlite-android and use their open helper factory when setting up Room.
Steps to reproduce:
RequerySQLiteOpenHelperFactory
as shown:Actual result:
Expected result:
The text was updated successfully, but these errors were encountered: