Closed brunotag closed 4 years ago
notice I've mainly lifted and shifted logic that was already there. The main difference with the previous approach is to gather the counter's values even if the there are no instances, instead of skipping it.
cc: @sschwartzman
Some counters don't have instances, but they still make sense. For instance ASP.NET.
Microsoft allows for that (
GetCounters("")
works whenGetInstanceNames().Length == 0
), so this change enables such counters to be reported as well.At the moment such counters are skipped instead.