dotnet-counters issue when monitoring a process launched via the same command-line
Description
Running dotnet-counters monitor --counters System.Runtime,MyAppStuff -- MyApp shows System.Runtime metrics but does not show MyAppStuff metrics.
Running dotnet-counters monitor --counters MyAppStuff -- MyApp shows nothing at all.
Launching MyApp in one console window and running dotnet-counters monitor -n MyApp --counters System.Runtime,MyAppStuff in another shows both sets of metrics as expected.
Configuration
Code and tools are running locally on a Windows 10 machine. Using dotnet-counters version 6.0.328102+ab657cc109f93e48d52f6b12cd7f136bb2d0b311 MyApp is a Console application targeting .NET 6 and referencing System.Diagnostic.DiagnosticSource package version 6.0.0
@davmason
This has been fixed with https://github.com/dotnet/runtime/pull/76965.