From 0e24f47a4351a41927cfefd73966a1a95702117d Mon Sep 17 00:00:00 2001 From: liubin Date: Tue, 26 Jul 2022 10:32:44 +0800 Subject: [PATCH] agent: log RPC calls for debugging We can log all RPC calls to the agent for debugging purposes to check which RPC is called, which can help us to understand the container lifespan. Fixes: #4738 Signed-off-by: liubin --- src/agent/src/tracer.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/agent/src/tracer.rs b/src/agent/src/tracer.rs index 1854876da2..bad4a6f509 100644 --- a/src/agent/src/tracer.rs +++ b/src/agent/src/tracer.rs @@ -69,6 +69,8 @@ macro_rules! trace_rpc_call { propagator.extract(&extract_carrier_from_ttrpc($ctx)) }); + info!(sl!(), "rpc call from shim to agent: {:?}", $name); + // generate tracing span let rpc_span = span!(tracing::Level::INFO, $name, "mod"="rpc.rs", req=?$req);