fix some obvious minor bugs (#2055)
This commit is contained in:
parent
8eb1bb1c0a
commit
3fdab2fb95
|
|
@ -107,7 +107,7 @@ public class SkywalkingSpanBuilder implements Tracer.SpanBuilder {
|
|||
|
||||
@Override
|
||||
public Tracer.SpanBuilder withTag(String key, boolean value) {
|
||||
if (Tags.ERROR.equals(key)) {
|
||||
if (Tags.ERROR.getKey().equals(key)) {
|
||||
isError = value;
|
||||
} else {
|
||||
tags.add(new Tag(key, value ? "true" : "false"));
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ public class AntPathMatcher implements TracePathMatcher {
|
|||
* use pattern match path
|
||||
*/
|
||||
private static boolean matchStrings(String pattern, String path) {
|
||||
if (StringUtil.isEmpty(pattern) || StringUtil.isEmpty(pattern)) {
|
||||
if (StringUtil.isEmpty(pattern) || StringUtil.isEmpty(path)) {
|
||||
return false;
|
||||
}
|
||||
// if this pattern has been compiled
|
||||
|
|
|
|||
Loading…
Reference in New Issue