prometheus/model/relabel
Bryan Boreham 7a48a266b6
labels: respect Set after Del in Builder (#12322)
* labels: respect Set after Del in Builder

The implementations are not symmetric between `Set()` and `Del()`, so
we must be careful. Add tests for this, both in labels and in relabel
where the issue was reported.

Also make the slice implementation consistent re `slices.Contains`.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2023-05-03 11:59:27 +01:00
..
relabel.go labels: simplify call to get Labels from Builder 2023-03-22 17:05:20 +00:00
relabel_test.go labels: respect Set after Del in Builder (#12322) 2023-05-03 11:59:27 +01:00