-
Notifications
You must be signed in to change notification settings - Fork 120
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: switch to tracing
#223
Conversation
also, running |
Just wondering, does this replacement improve anything about poise's logging at this point in time, from a user's perspective? Or does it just "unlock" fancier logging things in poise in the future, like |
Haha that's really interesting. I tried to trace it back, but actually, the futures_core was not used ever. In bf6a92c I separated the |
the main benefit is the general benefits of |
The reason I'm asking is because I never felt the need for any of tracing's advanced capabilities in poise. So, since log and tracing seem to be intercompatible, I'd prefer to stick with log until the need for the more complex alternative actually arised? |
that makes sense. if it changes your opinion at all, using in terms of simplicity, i totally understand sticking with |
Interesting. Do you have examples on the useful information which tracing emits and log doesn't? I scoured the tracing codebase and the logging macros call chain but didn't learn much. Btw I realized we could have a compromise solution; use tracing's logging macros in poise, but still use env_logger in all tests, examples etc. to avoid that weird boilerplate verbosity of tracing-subscriber (it looks ugly ngl) |
maybe make this feature gated, about which logging library to use? |
Nah, that doesn't give any benefit. Tracing is fully down compatible to log. If we invest the complexity and adopt tracing, log becomes totally redundant, and having both makes no sense |
Only when using spans in the library code, right? Either directly, or indirectly via |
yes, that would be true. without that, it would be about as useful as |
however, just as a mention, using a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two things
I'll push a commit that fixes those things and then merge |
Thanks, now I didn't even need to make the commit myself :D I'll wait for CI, then merge |
closes #221