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

feat(pubsublite): add client library metadata to headers #3458

Merged
merged 6 commits into from Jan 7, 2021

Conversation

tmdiep
Copy link
Contributor

@tmdiep tmdiep commented Dec 14, 2020

Adds client library version and other properties to gRPC stream metadata for debugging purposes.

@tmdiep tmdiep requested a review from a team as a code owner December 14, 2020 03:38
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Dec 14, 2020
@product-auto-label product-auto-label bot added the api: pubsublite Issues related to the Pub/Sub Lite API. label Dec 14, 2020
@tmdiep tmdiep requested a review from codyoss December 14, 2020 03:39
@tmdiep
Copy link
Contributor Author

tmdiep commented Dec 14, 2020

@codyoss: We'd like to send the pubsublite library version to the server for debugging purposes. debug.BuildInfo works well for binaries built with modules, but do you know what options we have if GOPATH is used?

@tmdiep tmdiep requested a review from hongalex January 6, 2021 23:03
Copy link
Member

@codyoss codyoss left a comment

Choose a reason for hiding this comment

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

Just one small comment or else seems good to me. Only other thing is that I think we need to document these additional headers somewhere(internal). That way things can be consistent across languages and people can tell what the values mean. It is very possible this is already done and I am oblivious though.

pubsublite/internal/wire/rpc.go Show resolved Hide resolved
@tmdiep tmdiep merged commit 8226811 into googleapis:master Jan 7, 2021
@tmdiep tmdiep deleted the pubsub_headers branch January 7, 2021 20:47
0xSage pushed a commit to 0xSage/google-cloud-go that referenced this pull request Jan 8, 2021
…3458)

Adds client library version and other properties to gRPC stream metadata for debugging purposes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsublite Issues related to the Pub/Sub Lite API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants