In ASP.Net Core 2 web site we are using the latest (4-alpha9) MiniProfiler to see the SQL being generated.
Beside generated SQL, I also see a lot of calls to Connection Close()/Connection Open()
:
They are fast and logging them seems useless to me.
Can I filter them out?
Some of them can be filtered out using options.ExcludedMethods.Add("ConnectionOpening");
but not all of them.
Also, these calls seem to ignore options.TrivialDurationThresholdMilliseconds = 3;
setting, that I also tried.
Are there any other options?