-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Context in its own package? #2847
Comments
We can put it under com.google.instrumentation.context (but again it may not be generic enough and probably the name is too long). Can we put it in com.google.context or com.google.base? |
Could be a non-company'specific package name similar to dagger which just
uses one word iirc. Short package helps as you can fully qualify the class
easily in adapters
…On 30 Mar 2017 08:02, "Bogdan Drutu" ***@***.***> wrote:
We can put it under com.google.instrumentation.context (but again it may
not be generic enough and probably the name is too long). Can we put it in
com.google.context or com.google.base?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2847 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAD613167xYd09n-xX3Rd_yj7o2T7Himks5rqvD9gaJpZM4MleqG>
.
|
@bogdandrutu I don't see why @adriancole IMO non-organization-specific package names, especially with a widely used term like "context", go against the principles of Java package as a name-spacing measure. We are not the only context solution for Java, neither are we the canonical one (at least for now). We should be a good citizen and label our context with something can identify where it's from. Short fully-qualified class names in adapters is a non-goal, because adapters are one-off efforts. |
@zhangkun83 your opinion duly noted :) just bear in mind that google branding this is a double-edged sword, especially since indeed the purpose of this library is for more than just google to use. |
As I mentioned in #3522, it definitely feels like something like this should already be a part of JDK, but unfortunately it isn't. Based on the discussion above, The bottom line is that it certainly doesn't feel like it belongs to |
Although
io.grpc.Context
is shipped in its own artifact, and non-gRPC users can also depend on it, the package name still causes branding issue (census-instrumentation/opencensus-java/issues/162), and a practical issue with OSGI (#2727). We may consider moving it into its own package and splitting it completely from gRPC.We have two questions to answer:
com.google
, but probably notcom.google.common.context
because it collides with a Google's proprietary context class.Context
andDeadline
to the new ones.The text was updated successfully, but these errors were encountered: