Commit d140d14
committed
In prometheus/client_golang#1424, a new check was introduced to make sure the metric with the provided metricName is found.
We were depending on it not erroring. This PR removes that assumption and instead makes sure the metric does no longer existi using the CollectAndCount function.
Signed-off-by: Tim Ramlot <[email protected]>1 parent 5821ede commit d140d14
1 file changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
| 366 | + | |
| 367 | + | |
371 | 368 | | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
| 369 | + | |
| 370 | + | |
377 | 371 | | |
378 | 372 | | |
0 commit comments