Callback for recording events (injected from main tracker).
static Future<void> Function(Event event)? onRecordEvent;