Skip to content
Snippets Groups Projects
Commit 44f71990 authored by yakecanlee's avatar yakecanlee Committed by yakecanlee
Browse files

fix the wrong judgment in rpc result error

parent de2dad98
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ func (tf *tracingFilter) Invoke(ctx context.Context, invoker protocol.Invoker, i
}()
result := invoker.Invoke(spanCtx, invocation)
span.SetTag(successKey, result.Error() != nil)
span.SetTag(successKey, result.Error() == nil)
if result.Error() != nil {
span.LogFields(log.String(errorKey, result.Error().Error()))
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment