whatausernameis opened a new issue, #2900: URL: https://github.com/apache/brpc/issues/2900
问题描述 我们使用baidu_std协议。现在我们需要在日志中打印出一个能够标识一对req/resp的id。在RpcMeta里有一个correlation_id。在client端应该可以通过controller.call_id()来打印这个correlation_id,但在server端如何打印呢?看起来是被存到了FunctionClosure7的一个private成员里,不通过修改brpc的代码不好打印。 看到了有一个log_id字段,是可以用来满足这个需求的。但看起来实际上correlation_id天然就可以满足这个需求。是否可以有选项,使得把log_id设置成和correlation_id相同的值? -- 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. To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org