Diagnostic data collection including trace spooling