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: support user-agent in InProcess #3853

Merged
merged 1 commit into from
Dec 11, 2017

Conversation

jyane
Copy link
Member

@jyane jyane commented Dec 10, 2017

Currently, InProcess(io.grpc.inprocess) does not support the use of a user-agent, but it may be useful for testing of LoggingInterceptor(It is just an example, it records the status, responses, user-agent, etc to log files).

@jyane jyane force-pushed the add-user-agent-to-inprocess branch from 01828c2 to 4289fba Compare December 11, 2017 16:44
Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

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

Thanks!

@ejona86 ejona86 added the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Dec 11, 2017
@kokoro-team kokoro-team removed the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Dec 11, 2017
@ejona86 ejona86 requested a review from zpencer December 11, 2017 17:41
@@ -143,6 +146,9 @@ public void start(ClientStreamListener listener) {
}
};
}
headers.put(
GrpcUtil.USER_AGENT_KEY,
GrpcUtil.getGrpcUserAgent("inprocess", userAgent));
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: the agent should be a final var for this instance.

Copy link
Member

Choose a reason for hiding this comment

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

I'll do that as a follow-up.

@ejona86 ejona86 merged commit 11b5c1a into grpc:master Dec 11, 2017
@ejona86
Copy link
Member

ejona86 commented Dec 11, 2017

I created #3860 for the optimization.

@jyane jyane deleted the add-user-agent-to-inprocess branch December 12, 2017 00:44
@zhangkun83 zhangkun83 added this to the 1.9 milestone Dec 19, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants