Open marandaneto opened 1 year ago
Thanks for explaining your need. Currently logging is done the native side mainly for debugging (and batch are executed only on the native without calling back the dart side). But I'm looking for a solution likely a wrapper presented as a factory that will wrap each call like you suggest.
@alextekartik Thanks, a wrapper works but its more cumbersome IMO, so I'd be looking for something similar to https://square.github.io/okhttp/features/interceptors/ You could do that before & after calling the Native channels (calling native), it'd be pretty much the same. I'll go for a wrapper solution for now but I'd love to help on this in the future.
Hi, first of all, thanks for the great work.
It'd be awesome if this lib would add support for APM/error monitoring.
Today this is possible if you manually do it for each of your DB calls, eg.
This would be a lot of boilerplate in your App, and much harder to migrate in case something changes.
Imagine that you are able to automatically start/finish tracing all of your execution statements (CRUD) using a callback of sort.
For example,
OpenDatabaseOptions
takes an optionalonExecute
callback in its configuration.And the methods responsible for performing such operations would do something similar to:
So APM tools such as sentry.io could provide builtin
OnExecuteFn
for automatic monitoring.This is just an example, I don't know the sqflite well so don't take this example as a recommendation, maybe there are better ways to hook up into the execution pipeline, etc.
Thanks!