Reitse Eskens check the state of the art:
What’s new in SQL 2025 is that the team behind SQL Server 2025 has addressed an issue that I’ve encountered once or twice as well. If you start an extended event, it will run until you stop it. Yes, you have to manually stop it. If you don’t, it will stop eventually. Together with some other services, because the disk space has run out. In my case, I was fortunate that the servers were monitored and alerts were triggered due to low disk space.
In this new version, starting with Release Candidate 0 (RC0), you can configure the duration.
Click through for a demo, as well as current limitations (generally around this not being in the UI yet).