feifeiiong opened a new issue #1010: 异步情况下的span传递问题 
URL: https://github.com/apache/incubator-brpc/issues/1010
 
 
   **Describe the bug (描述bug)**
   关于异步情况下 clientSpan的cr时间问题,对应span中的字段为:_received_real_us
   观察到这个字段是在收包阶段设置。若brpc作为proxy,接收上游请求,之后发起异步调用,这时Server 
Controller会被销毁,由此调用Span的submit方法,此种情况下,异步调用的clientSpan会跟随ServerSpan一同销毁,由此会出现cr=0的情况。
   Span销毁后,只是调用ReturnToObject丢回对象池,异步回调结束后,仍然可以拿到ParentSpan的指针,同事client 
Controller事实上仍然是持有 client Span的指针的,这里设计是否存在问题?
   
   **To Reproduce (复现方法)**
   异步调用,一段时间后返回,cr时间为0.
   
   **Expected behavior (期望行为)**
   clientSpan的销毁时机,应该在异步调用返回之后。
   
   **Versions (各种版本)**
   OS:
   Compiler:
   brpc:
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to