prometheus/model
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
..
exemplar Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
histogram style: Replace else if cascades with switch 2023-04-19 17:22:31 +02:00
labels labels: respect Set after Del in Builder (#12322) 2023-05-03 11:59:27 +01:00
metadata Introduce TSDB changes for appending metadata to the WAL (#10972) 2022-07-19 10:58:52 +02:00
relabel labels: respect Set after Del in Builder (#12322) 2023-05-03 11:59:27 +01:00
rulefmt Add rulefmt tests 2023-01-19 10:44:35 +01:00
textparse Merge branch 'main' into linter/nilerr 2023-04-19 19:56:39 +02:00
timestamp Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
value Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00