safely method
Reports instrumentation failures without changing the database result.
Implementation
Future<void> safely(String operation, Future<void> Function() action) async {
try {
await action();
} on Object catch (error, stack) {
_diagnose(error, stack, operation);
}
}