Add trace info in C API
Add trace info to IoCtxImpl