The ApplicationStartup class can be called from different threads when request scope beans are used. I think that FlightRecorderApplicationStartup could fail in such situations.

See https://github.com/spring-projects/spring-boot/issues/25792 for a similar issue in Spring Boot's BufferingApplicationStartup