flushSpans static method
Drains Dart-buffered spans to native and persists the native bridge queue to disk. Completes when the spans are durable.
Implementation
static Future<void> flushSpans() async {
_log.fine('Flushing bridged Dart spans to native.');
await _bridgeProcessor?.flushToNative();
_log.fine('Finished flushing bridged Dart spans.');
}