fix opentracing with tag error is failed (#3795)

This commit is contained in:
cyejing 2019-11-06 21:23:26 +08:00 committed by 吴晟 Wu Sheng
parent 4c688701dc
commit b63f8bca8b
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,8 @@ public class SpanSetTagInterceptor implements InstanceMethodsAroundInterceptor {
activeSpan.setComponent(tagValue);
} else if (Tags.PEER_SERVICE.getKey().equals(tagKey)) {
activeSpan.setOperationName(tagValue);
} else if (Tags.ERROR.getKey().equals(tagKey) && "true".equals(tagValue)) {
activeSpan.errorOccurred();
} else {
activeSpan.tag(tagKey, tagValue);
}