Skip to content
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

core: split Context into a separate grpc-context artifact. #2226

Merged
merged 1 commit into from
Sep 2, 2016

Conversation

zhangkun83
Copy link
Contributor

The Context API is not particularly gRPC-specific, and will be used by Census as its context propagation mechanism.

@ejona86
Copy link
Member

ejona86 commented Sep 1, 2016

@zhangkun83 LGTM

description = 'gRPC: Context'

dependencies {
compile libraries.guava,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this doesn't have a strict need for guava, it will be easier to reuse in other projects. can be a follow-up

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah looking at the code it would be trivial to move both of these to test deps. Things like context are best as dependency-free libraries.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds reasonable. I can update in this PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adriancole, I didn't say anything during review, but I was already thinking we'd do a follow-up to remove the dep :). Now works, too.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm very excited about this. It would be great to share a context for
zipkin, grpc and census (and whatever else)

On Fri, Sep 2, 2016 at 8:46 AM, Eric Anderson notifications@github.com
wrote:

In context/build.gradle
#2226 (comment):

@@ -0,0 +1,16 @@
+plugins {

  • id "be.insaneprogramming.gradle.animalsniffer" version "1.4.0"
    +}

+description = 'gRPC: Context'
+
+dependencies {

  • compile libraries.guava,

@adriancole https://github.com/adriancole, I didn't say anything during
review, but I was already thinking we'd do a follow-up to remove the dep
:). Now works, too.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/grpc/grpc-java/pull/2226/files/d41fa3dce7f0a88c99267604b55105dc5916f980#r77278670,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAD610heCwL44cNXRTKtd69gInW3vCDCks5ql3HJgaJpZM4JzN71
.

@codefromthecrypt
Copy link
Contributor

👍 with notes added about removing the deps. ex zipkin could easily use it if we didn't have a guava dep only to checkArgument or avoid copy/pasting a direct executor

@zhangkun83
Copy link
Contributor Author

@adriancole I guess jsr305 should stay?

@codefromthecrypt
Copy link
Contributor

codefromthecrypt commented Sep 2, 2016 via email

The Context API is not particularly gRPC-specific, and will be used by
Census as its context propagation mechanism.

Removed all dependencies to make it easy for other libraries to depend
on.
@zhangkun83 zhangkun83 merged commit c4f7f5c into grpc:master Sep 2, 2016
@zhangkun83 zhangkun83 deleted the context_artifact branch September 2, 2016 20:25
@zhangkun83 zhangkun83 added the TODO:backport PR needs to be backported. Removed after backport complete label Sep 12, 2016
@codefromthecrypt
Copy link
Contributor

ps when is this going to be released?

@ejona86
Copy link
Member

ejona86 commented Sep 13, 2016

"Soon." Maybe as early as this week. We're planning on back-porting it and then doing a v1.0.1 release with it.

@zhangkun83 zhangkun83 removed the TODO:backport PR needs to be backported. Removed after backport complete label Sep 14, 2016
@ejona86
Copy link
Member

ejona86 commented Sep 14, 2016

@adriancole, the separate grpc-context artifact is in v1.0.1 which I just released from Sonatype. Give it some time and it should show up.

@codefromthecrypt
Copy link
Contributor

sweet

On Thu, Sep 15, 2016 at 7:15 AM, Eric Anderson notifications@github.com
wrote:

@adriancole https://github.com/adriancole, the separate grpc-context
artifact is in v1.0.1 which I just released from Sonatype. Give it some
time and it should show up.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2226 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAD619G0Vo44WFw7F_-HsFGdVBnbp5xvks5qqIAugaJpZM4JzN71
.

@mksriram
Copy link

I see an issue with splitting these jars especially when importing them into OSGI. The grpc-core.jar and grpc-context.jar seem to export the same package which doesnt really go well with OSGI.

Is it possible to have a unified artifact which would be usable in OSGI context be available?

@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants