opentelemetry-python-contrib
opentelemetry-python-contrib copied to clipboard
Sort labelset to ensure compatibility with thanos-receive
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.