Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ public static class AsyncCallback implements BiConsumer<Result, Throwable> {
@Override
public void accept(@Nullable Result result, @Nullable Throwable t) {
AbstractSpan<?> span = (AbstractSpan<?>) RpcContext.getContext().get(DubboTraceHelper.SPAN_KEY);
/*
* because of RpcContextAttachment#getAttachment(String) check value type if not string return null
* @see https://github.com/apache/dubbo/blob/dubbo-3.3.4/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/RpcContextAttachment.java#L78
*/
if (span == null) {
span = (AbstractSpan<?>) RpcContext.getContext().get().get(DubboTraceHelper.SPAN_KEY);
}
if(span == null){
return;
}
Expand Down