-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat(v2/callctx): add new callctx package #291
Conversation
Add a new callctx package to gax to facilitate adding and retrieving values from context.Context that our libraries can use to share information throughout the call stack. The first addition to this package will be two APIs to allow users to set RPC headers that will be added to API requests our clients make. A follow up PR will be made to add using these after these changes are merged with googleapis#290.
Should we just submit this and update 290 to leverage these as well? The way I see it, this PR provides users a transport-agnostic means of setting headers, but 290, the transport-specific helpers, need to still respect users that have set |
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.
Looks good, thank you Cody!
This allows headers added to the context metadata to be applied to the request. See googleapis/gax-go#291.
This allows headers added to the context metadata to be applied to the request. See googleapis/gax-go#291.
Add a new callctx package to gax to facilitate adding and retrieving values from context.Context that our libraries can use to share information throughout the call stack. The first addition to this package will be two APIs to allow users to set RPC headers that will be added to API requests our clients make.
A follow up PR will be made to add using these after these changes are merged with #290.