I implemented a simple metrics counter from this blog: https://www.meziantou.net/monitoring-a-dotnet-application-using-opentelemetry.htm#metrics
If I run the app from command line as a standalone app I can see the counter changing values:
dotnet counters monitor --process-id 123 --counters MyApplication
However if I run it from VS the monitor doesnt see the app - it sits with "Waiting for initial payload..." message.
How can I monitor metrics while running app from VS 2022?
The new VS 2022 v 17.8 now let's you monitor metrics in the diagnostics window