docs(tracing): Improve documentation to describe the usage of the functions and remove wrong return types marked by the analyzer