fix grpc issue (#1039)

This commit is contained in:
Xin,Zhang 2018-04-06 22:44:47 +08:00 committed by 吴晟 Wu Sheng
parent 8d1bead138
commit 4d7192f64c
1 changed files with 1 additions and 1 deletions

View File

@ -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());