You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2020/12/25 23:21:41 UTC
[dubbo-go] branch develop updated: fix the wrong judgment in rpc
result error
This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/develop by this push:
new 44f7199 fix the wrong judgment in rpc result error
new 3106c28 Merge pull request #958 from yakecanlee/feature/fix-tracing-filter
44f7199 is described below
commit 44f71990719af1ead852efad474ab4b22d2a827d
Author: yakecanlee <27...@qq.com>
AuthorDate: Fri Dec 25 11:03:34 2020 +0800
fix the wrong judgment in rpc result error
---
filter/filter_impl/tracing_filter.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/filter/filter_impl/tracing_filter.go b/filter/filter_impl/tracing_filter.go
index b8058aa..dcdbe5b 100644
--- a/filter/filter_impl/tracing_filter.go
+++ b/filter/filter_impl/tracing_filter.go
@@ -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()))
}