提交 4d7192f6 编写于 作者: X Xin,Zhang 提交者: wu-sheng

fix grpc issue (#1039)

上级 8d1bead1
......@@ -75,7 +75,7 @@ public class BlockingCallClientInterceptor extends ForwardingClientCall.SimpleFo
@Override public void onClose(Status status, Metadata trailers) {
delegate().onClose(status, trailers);
if (status.isOk()) {
if (!status.isOk()) {
AbstractSpan activeSpan = ContextManager.activeSpan();
activeSpan.errorOccurred().log(status.getCause());
Tags.STATUS_CODE.set(activeSpan, status.getCode().name());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册