I am not sure what request_id you mean. You may get textual representation of the request or response by calling the DebugString message. ABSL log also has built-in support for proto messages:
::envoy::service::discovery::v3::DiscoveryRequest req; req.add_resource_names("aaa"); gpr_log(GPR_ERROR, "%s", req.DebugString().c_str()); LOG(ERROR) << "ABSL log!" << req; On Sunday, October 29, 2023 at 5:56:23 AM UTC-7 city invoker wrote: > how can i write req/rsp info to a log file,with tracking request_id,i look > at the grpcpp source code and found not support, i'm using c++ btw. -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/e46d193e-b442-4d68-b6bb-55e9cb7a0092n%40googlegroups.com.