We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 553adcc commit 5fb241fCopy full SHA for 5fb241f
set.go
@@ -47,9 +47,12 @@ func (s *Set) WritePrometheus(w io.Writer) {
47
return fName1 < fName2
48
}
49
50
+ mType1 := s.a[i].metric.metricType()
51
+ mType2 := s.a[j].metric.metricType()
52
+
53
// stabilize the order for summary and quantiles.
- if s.a[i].metric.metricType() != s.a[j].metric.metricType() {
- return s.a[i].metric.metricType() < s.a[j].metric.metricType()
54
+ if mType1 != mType2 {
55
+ return mType1 < mType2
56
57
58
// lastly by metric names, which is for quantiles and histogram buckets.
0 commit comments