Fix: TraceIgnorePathPatterns can't set empty value (#7059)

This commit is contained in:
Leon Yang 2021-06-02 23:18:31 +08:00 committed by GitHub
parent e3312c7834
commit d5348c93de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,7 @@ Release Notes.
* Fix ClassCast issue for RequestHolder/ResponseHolder.
* fixed `jdk-threading-plugin` memory leak.
* Optimize multiple field reflection operation in Feign plugin.
* Fix `trace-ignore-plugin` TraceIgnorePathPatterns can't set empty value
#### OAP-Backend
* BugFix: filter invalid Envoy access logs whose socket address is empty.

View File

@ -89,6 +89,8 @@ public class TraceIgnoreExtendService extends SamplingService {
void handleTraceIgnorePatternsChanged() {
if (StringUtil.isNotBlank(traceIgnorePatternWatcher.getTraceIgnorePathPatterns())) {
patterns = traceIgnorePatternWatcher.getTraceIgnorePathPatterns().split(PATTERN_SEPARATOR);
} else {
patterns = new String[] {};
}
}
}