Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support across thread tracing for SOFA-RPC #675

Merged
merged 10 commits into from
Mar 25, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@

import com.alipay.remoting.InvokeCallback;
import java.util.concurrent.Executor;
import lombok.Getter;
import org.apache.skywalking.apm.agent.core.context.ContextManager;
import org.apache.skywalking.apm.agent.core.context.ContextSnapshot;
import org.apache.skywalking.apm.agent.core.context.trace.AbstractSpan;

public class InvokeCallbackWrapper implements InvokeCallback {

@Getter
private ContextSnapshot contextSnapshot;
@Getter
private final InvokeCallback invokeCallback;

public InvokeCallbackWrapper(InvokeCallback invokeCallback) {
Expand Down Expand Up @@ -81,12 +84,4 @@ public void onException(final Throwable throwable) {
public Executor getExecutor() {
return invokeCallback.getExecutor();
}

protected ContextSnapshot getContextSnapshot() {
return contextSnapshot;
}

protected InvokeCallback getInvokeCallback() {
return invokeCallback;
}
}