Skip to content

fix: add gcloud-python user agent header#9548

Closed
crwilcox wants to merge 1 commit intomasterfrom
add-gcloud-python
Closed

fix: add gcloud-python user agent header#9548
crwilcox wants to merge 1 commit intomasterfrom
add-gcloud-python

Conversation

@crwilcox
Copy link
Contributor

@crwilcox crwilcox commented Oct 28, 2019

Some metrics systems expect gcloud-{lang}/{library_version}

@crwilcox crwilcox requested a review from busunkim96 as a code owner October 28, 2019 17:37
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 28, 2019
@crwilcox crwilcox requested a review from tseaver October 28, 2019 17:37

if self.client_library_version is not None:
ua += "gccl/{client_library_version} "
ua += "gcloud-python/{client_library_version} "
Copy link
Contributor

Choose a reason for hiding this comment

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

Why would we want to repeat the same version with a different prefix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The gccl header is the way forward, we have systems that still expect gcloud-python. This is to make sure both legacy and forward systems have data in the form they expect. I will mark this dnm for now.

Copy link
Contributor

Choose a reason for hiding this comment

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

ISTM we need to double-check that adding gcloud-python back in doesn't break any of the log parsers expecting the "standard" format.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It shouldn't be an issue due to the additive nature of the ua strings. That said, I am currently in discussions with some folks.

@crwilcox crwilcox added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Oct 28, 2019
@crwilcox
Copy link
Contributor Author

I am closing this. I will open a pr that adds it just to storage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement. do not merge Indicates a pull request not ready for merge, due to either quality or timing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants