提交 3174e1ae 编写于 作者: 于玉桔 提交者: wu-sheng

bugfix (#2046)

上级 118442a9
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册