Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the usage of tracing spans more visible #82

Open
ghost opened this issue Apr 22, 2021 · 0 comments
Open

Make the usage of tracing spans more visible #82

ghost opened this issue Apr 22, 2021 · 0 comments
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed

Comments

@ghost
Copy link

ghost commented Apr 22, 2021

From examples/theme_test_helper.rs:

//! Nothing interesting here. This is just a small helper used in a test.

I beg to differ 馃槃

Using color-eyre along with the span+guard pattern:

let span = tracing::info_span!("my_span", msg);
let _guard = span.enter();

For me gives the best error reporting I have found as of yet in Rust.
(I wish it was a bit more ergonomic to set up though).

I realize this might fall into the domain of tracing more than color-eyre (?), but
I think it's so useful an example highlighting it would be very welcome.

@yaahc yaahc added documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed labels Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant