-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Conversation
01828c2
to
4289fba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@@ -143,6 +146,9 @@ public void start(ClientStreamListener listener) { | |||
} | |||
}; | |||
} | |||
headers.put( | |||
GrpcUtil.USER_AGENT_KEY, | |||
GrpcUtil.getGrpcUserAgent("inprocess", userAgent)); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
I created #3860 for the optimization. |
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).