You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently this library lacks basic description about what is the "tracing" we would like to solve. It is not friendly for wild people that accidentally discovered this library, for example, from TiKV and its friend repositories.
Hopefully we can keep it very simple - the tracing crate world is crate spaghetti.
From my PoV.
Reporters just plugin and work (hopefully my #[trace] macro work will mean this, in the fullness of time, becomes:
#[trace[root=true, recurse=public, reporter=Jaeger]fnmain(){fnhi(){println!("your un-traced code here");}pubfnworld(){hello();println!("world");pubfnhello(){println!("Hello");}}// etc.world();}// Hello // world
Then:
Start Jaeger: podman run -d ....
Run your traced app: cargo run
Visit the Jaeger page to see your trace: firefox http://localhost:1681
The public API, from my PoV, is (tracing crate compatible):
<s>.record("key","value");
Everything else is considered internal implementation details and subject to change at any instant.
There are no constraints/limitations we impose on the levels of tracing your app can have, and how you name them. An ./example/levels crate that implements log/tracing style levels via cargo features should suffice.
All that said I think we can keep this to a one pager for the "...wild people that accidentally discovered this library".
I certainly struggled to figure out some basics, but it has been worth it so far :)
Hopefully we can improve things for others.
Currently this library lacks basic description about what is the "tracing" we would like to solve. It is not friendly for wild people that accidentally discovered this library, for example, from TiKV and its friend repositories.
A nice example would be https://tracing-rs.netlify.app/tracing/ where core concepts are explained in detail.
The text was updated successfully, but these errors were encountered: