Closed johncming closed 5 years ago
Which piece of code is using it this way?
Which piece of code is using it this way?
This interface is rarely used, the pr to keep the interfaces consistent.
FromStrings
FromMap
FromMap
imply uniqueness, but FromStrings
not.
It'd be a programming error if it wasn't unique, and silently throwing away data doesn't sound like the best of ideas.
It'd be a programming error if it wasn't unique, and silently throwing away data doesn't sound like the best of ideas.
ok. I will close the issue
It is possible to insert duplicate labels using the
FromStrings
functionhttps://github.com/prometheus/tsdb/blob/3bc1ea3d7584d67882fd4019d5bd892905966eb2/labels/labels.go#L148-L162
This pr is modified to improve the function based on 'FromMap'