未验证 提交 be2feb15 编写于 作者: W Wang XiangYu 提交者: GitHub

Log with request id (#2192)

* add function to get request id
Signed-off-by: Nwxyu <xy.wang@zilliz.com>

* update log in GrpcRequestHandler
Signed-off-by: Nwxyu <xy.wang@zilliz.com>

* update request id format
Signed-off-by: Nwxyu <xy.wang@zilliz.com>
上级 e77fd122
......@@ -24,6 +24,11 @@ class Context {
public:
explicit Context(const std::string& request_id);
inline std::string
RequestID() const {
return request_id_;
}
std::shared_ptr<Context>
Child(const std::string& operation_name) const;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册