fix opentracing with tag error is failed (#3795)
This commit is contained in:
parent
4c688701dc
commit
b63f8bca8b
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue