Fix that chunked string is incorrect while the tag contains colon (#5818)
This commit is contained in:
parent
52b056a737
commit
4a01f80ae7
|
|
@ -39,6 +39,7 @@ Release Notes.
|
|||
* Fix CVE in the uninstrumented gateways configs, when activating the dynamic configuration feature.
|
||||
* Fix CVE in the Apdex threshold configs, when activating the dynamic configuration feature.
|
||||
* Make the codes and doc consistent in sharding server and core server.
|
||||
* Fix that chunked string is incorrect while the tag contains colon
|
||||
|
||||
#### UI
|
||||
* Fix incorrect label in radial chart in topology.
|
||||
|
|
|
|||
|
|
@ -194,8 +194,8 @@ public abstract class AvgHistogramPercentileFunction extends Metrics implements
|
|||
dataset.keys().stream()
|
||||
.map(key -> {
|
||||
if (key.contains(":")) {
|
||||
String[] kk = key.split(":");
|
||||
return Tuple.of(kk[0], key);
|
||||
int index = key.lastIndexOf(":");
|
||||
return Tuple.of(key.substring(0, index), key.substring(index + 1));
|
||||
} else {
|
||||
return Tuple.of(DEFAULT_GROUP, key);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue