In the old (pre .net core) era\'s entity framework 6 as shown in this blog post there is a way to configure an interceptor which can log all slow queries including a stack b
It is coming for EntityFramework Core 3.0: https://github.com/aspnet/EntityFrameworkCore/issues/15066
It will work the same way as the one in EF 6