We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
func (s *workflowServer) Execute(ctx context.Context, wd *wfpb.WorkflowData) (*emptypb.Empty, error) { if defaultFac.protocol != dtmimp.ProtocolGRPC { return nil, status.Errorf(codes.Internal, "workflow server not inited. please call workflow.InitGrpc first") } tb := dtmgimp.TransBaseFromGrpc(ctx) _, err := defaultFac.execute(tb.Op, tb.Gid, wd.Data) return &emptypb.Empty{}, dtmgrpc.DtmError2GrpcError(err) }
func TransBaseFromGrpc(ctx context.Context) *dtmimp.TransBase { md, _ := metadata.FromIncomingContext(ctx) tb := dtmimp.NewTransBase(dtmGet(md, "gid"), dtmGet(md, "trans_type"), dtmGet(md, "dtm"), dtmGet(md, "branch_id")) tb.Op = dtmGet(md, "op") return tb }
defaultFac.execute(tb.Op, tb.Gid, wd.Data) 执行回调的时候,链路追踪丢失了,现在只能取巧把上下文信息放到data里面
The text was updated successfully, but these errors were encountered:
No branches or pull requests
defaultFac.execute(tb.Op, tb.Gid, wd.Data) 执行回调的时候,链路追踪丢失了,现在只能取巧把上下文信息放到data里面
The text was updated successfully, but these errors were encountered: