Daniel Ramos
Daniel Ramos
Is the documentation on this page not what we are looking for?: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?view=aspnetcore-7.0 It has a section for using dotnet trace to collect logs.
After some investigation, I believe that it is not Initialize() that is getting trimmed, but instead [ProcessStartupHooks(),](https://source.dot.net/#System.Private.CoreLib/src/libraries/System.Private.CoreLib/src/System/StartupHookProvider.cs,6a46b76bb582317f) which calls Initialize(), that is getting trimmed. It seems that the trimming is...
This has been fixed with https://github.com/dotnet/runtime/pull/76965.
The Win32Exception does get caught and it is getting written to the console. I believe the unhandled exception System.InvalidOperationException is occurring because we are trying to interact with the process...
You should be using an ObservableGauge if you are trying to measure the random values themselves. In your example you are using an ObservableCounter, which measures the rate of change....
Since this seems to be solved from the comment above, I'm going to close this issue. If you are still having this issue, feel free to open a new issue.
I seem to not be able to reproduce this. Do you mind sending the nettrace file that you saw this with? @danielodievich