mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Remove extra trailing '-' in metric name
This commit is contained in:
parent
8fcf355d71
commit
79deed7ec5
@ -119,6 +119,7 @@ public class MetricFilterAutoConfiguration {
|
||||
result = result.replace("**", "-star-star-");
|
||||
result = result.replace("*", "-star-");
|
||||
result = result.replace("/-", "/");
|
||||
result = result.replace("-/", "/");
|
||||
if (result.endsWith("-")) {
|
||||
result = result.substring(0, result.length() - 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user