-
Notifications
You must be signed in to change notification settings - Fork 839
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
Reconsider exporting symbols from internal modules #17450
Comments
I have a similar situation in |
I think it's okay for a module to re-export things from its own |
Also, if you're going to export internals, please make sure they are fully exported. Atm, you export |
As an additional note, if you're considering NOT exporting key internals at all, that'd be really unfortunate. If they are exported (correctly), I can at least leverage key components (e.g. |
I agree that |
These are for logging, right? If so, I think it still best that only client lib authores beable to call them. Our logging infrastrutue is for logging client lib operations and is not designed as a general purpose logging mechanism for customers to use themselves. |
Correct, this is just for logging. In essence, the Its APIs are split into two buckets. One is intended to be called by customers, and the other to be called by SDK authors. In order to enforce this dichotomy, the buckets are implemented in The bucketing of the APIs requires the |
These have been cleaned up and will be included in the |
azcore/log
exports a type and constants fromsdk/internal/log
. This instance is low risk but the pattern is troubling in general because it makessdk/internal
not really internal. We should discuss whether to allow this pattern and, if we decide to allow it, what guard rails to place aroundinternal
modules (we'd want them around e.g.keyvault/internal
as well).The text was updated successfully, but these errors were encountered: