Skip to content

Commit

Permalink
Merge pull request alibaba#136 from Lyt99/fix/mergelabels
Browse files Browse the repository at this point in the history
fix(exporter): fix label out of order in mergeLabels
  • Loading branch information
BSWANG committed Nov 23, 2023
2 parents 4fb9948 + aef1a60 commit 289c1c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/exporter/probe/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,8 @@ func mergeArray(labels []string, labels2 []string) []string {
}

var ret []string
for k := range m {
ret = append(ret, k)
}
ret = append(ret, labels...)
ret = append(ret, labels2...)

return ret
}
Expand Down

0 comments on commit 289c1c2

Please sign in to comment.