-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
Why does octocrab
need tracing
as a feature?
#457
Comments
Thank you for your issue! You're right that it doesn't save a dependency currently. however there is a compile time and runtime cost to tracing/logging, that is removed with the feature. Also the goal is to eventually remove the hyper dependency entirely so users can choose their HTTP client library, so it will be more relevant then. |
Thanks for the clarification, closing this issue in that case. I have also raised an issue upstream hyperium/hyper#3304 requesting them to feature flag |
To be clear, depending on your application, the cost is incredibly minimal and it will usually never be a bottleneck, but there's always some cost, and it can also add extra noise to logs you might not want. |
Thanks for clarification |
Recently while working on this PR, we noticed the below:
Octocrab octocrab tries to not download
tracing
libraries for users who do not usetracing
feature. However,tracing
downloaded by default byhyper
. Since Octocrab depends onhyper
,tracing
library gets downloaded by default.Unless all the upstream libraries have similar feature flag, the feature flag
tracing
ofoctocrab
does not seem to have any benefit.Can we remove the
tracing
feature flag? if not, why?If the feature flag serves other purposes, please let me know.
I am happy to work on this once you give your thoughts and direction 🙋♀️
The text was updated successfully, but these errors were encountered: