pub async fn shutdown_trace_cache(pool: &PgPool) -> Result<usize, SqlError>
Flush all remaining traces during shutdown