diagnostics icon indicating copy to clipboard operation
diagnostics copied to clipboard

dotnet-counters issue when monitoring a process launched via the same command-line

Open MarkAD88 opened this issue 4 years ago • 2 comments

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

MarkAD88 avatar Sep 10 '22 18:09 MarkAD88

@davmason

tommcdon avatar Sep 12 '22 00:09 tommcdon

This has been fixed with https://github.com/dotnet/runtime/pull/76965.

dramos020 avatar Oct 20 '22 17:10 dramos020