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