Commit a6ed77d
committed
Fix: Handle multiple tags in dotnet-counters display
Fixes #5683
The ConsoleWriter was not properly validating tag parsing, causing
IndexOutOfRangeException when processing tags. This prevented
subsequent tags from being displayed.
Changes:
- Split tags with max count of 2 to handle values containing '='
- Validate array length before accessing elements
- Trim whitespace from tag keys
- Skip malformed tags gracefully instead of crashing
This ensures all tags in multi-dimensional metrics are displayed
correctly in dotnet-counters.1 parent 1215ad8 commit a6ed77d
1 file changed
Lines changed: 22 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
197 | 213 | | |
198 | 214 | | |
199 | | - | |
200 | | - | |
| 215 | + | |
| 216 | + | |
201 | 217 | | |
202 | 218 | | |
203 | 219 | | |
204 | | - | |
205 | | - | |
| 220 | + | |
| 221 | + | |
206 | 222 | | |
207 | 223 | | |
208 | 224 | | |
| |||
0 commit comments