mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-09 20:58:55 +00:00
Merge pull request #4739 from liubin/fix/4738-trace-rpc-calls
agent: log RPC calls for debugging
This commit is contained in:
@@ -69,6 +69,8 @@ macro_rules! trace_rpc_call {
|
|||||||
propagator.extract(&extract_carrier_from_ttrpc($ctx))
|
propagator.extract(&extract_carrier_from_ttrpc($ctx))
|
||||||
});
|
});
|
||||||
|
|
||||||
|
info!(sl!(), "rpc call from shim to agent: {:?}", $name);
|
||||||
|
|
||||||
// generate tracing span
|
// generate tracing span
|
||||||
let rpc_span = span!(tracing::Level::INFO, $name, "mod"="rpc.rs", req=?$req);
|
let rpc_span = span!(tracing::Level::INFO, $name, "mod"="rpc.rs", req=?$req);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user