opentelemetry-python-contrib icon indicating copy to clipboard operation
opentelemetry-python-contrib copied to clipboard

Sort labelset to ensure compatibility with thanos-receive

Open fstolba opened this issue 6 months ago • 5 comments

We're using thanos-receive which requires labels to be sorted lexicographically. Trying to submit a metric without first sorting the label list results in the write request being rejected, yielding the message Out of order labels in the label set.

This PR fixes this behaviour.

Please note I only tested this on thanos-remote, could use testing on other implementations.

fstolba avatar Aug 07 '24 08:08 fstolba