mirror of
https://github.com/valitydev/exporter-limits.git
synced 2024-11-06 00:25:22 +00:00
Sort limit scope label values (#9)
This commit is contained in:
parent
c158f0a230
commit
8df913149e
@ -178,6 +178,7 @@ public class LimitsService {
|
|||||||
})
|
})
|
||||||
.stream()
|
.stream()
|
||||||
.flatMap(stringObjectMap -> stringObjectMap.keySet().stream())
|
.flatMap(stringObjectMap -> stringObjectMap.keySet().stream())
|
||||||
|
.sorted()
|
||||||
.collect(Collectors.collectingAndThen(
|
.collect(Collectors.collectingAndThen(
|
||||||
Collectors.joining(","),
|
Collectors.joining(","),
|
||||||
s -> Objects.equals(s, "") ? "all" : s));
|
s -> Objects.equals(s, "") ? "all" : s));
|
||||||
|
Loading…
Reference in New Issue
Block a user