Context in its own package?
See original GitHub issueAlthough 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 (google/instrumentation-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:
- What should the new package name be? Probably something starting with
com.google
, but probably notcom.google.common.context
because it collides with a Google’s proprietary context class. - How to bridge the old
Context
andDeadline
to the new ones.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
context - Go Packages
Package context defines the Context type, which carries deadlines, cancellation signals, and other request-scoped values across API boundaries and between ...
Read more >How to consume same React context coming from different ...
In ui-lib there is an export const context = React.createContext({..}) and in package A and in common it will be different instances of...
Read more >Understanding golang's context package | Level Up Coding
The entry point for the contexts in golang is the context package. It is extremely useful and probably one of the most versatile...
Read more >How To Use Contexts in Go - DigitalOcean
Many functions in Go use the context package to gather additional information about the environment they're being executed in, and will ...
Read more >Go : Introduction to Context Package - Dev Genius
It's means, when you are create a context you can create a child context from the existing context. Parent context is possible to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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” notifications@github.com wrote:
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,
com.google.context
does seem to make most sense.The bottom line is that it certainly doesn’t feel like it belongs to
io.grpc
namespace (or project), considering that it has nothing to do with gRPC itself, and that bothinstrumentation-api
andopencensus-api
depend on it (which creates a really strange dependency graph, considering thatgrpc-core
depends on both of those).