Skip to content

fix: drop gcloud-python header from user agent#449

Closed
tseaver wants to merge 2 commits intomainfrom
25-drop-gcloud-python-header
Closed

fix: drop gcloud-python header from user agent#449
tseaver wants to merge 2 commits intomainfrom
25-drop-gcloud-python-header

Conversation

@tseaver
Copy link
Contributor

@tseaver tseaver commented May 24, 2021

This reverts commit dc817e9, added in googleapis/google-cloud-python#9551

Closes #25.

Note: do not merge until we have confirmation that the GCS back-end is using gccl for header processing.

@tseaver tseaver added status: blocked Resolving the issue is dependent on other work. do not merge Indicates a pull request not ready for merge, due to either quality or timing. labels May 24, 2021
@tseaver tseaver requested review from a team, crwilcox, frankyn and jsimonweb May 24, 2021 20:32
@tseaver tseaver requested a review from a team as a code owner May 24, 2021 20:32
@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/python-storage API. label May 24, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label May 24, 2021
@tseaver tseaver changed the title fix: crop gcloud-python header from user agent fix: drop gcloud-python header from user agent May 24, 2021
@parthea
Copy link
Contributor

parthea commented May 25, 2021

Blocked by b/188672632

# TODO: When metrics all use gccl, this should be removed #9552
if self._client_info.user_agent is None: # pragma: no branch
self._client_info.user_agent = ""
self._client_info.user_agent += " gcloud-python/{} ".format(__version__)
Copy link
Contributor

Choose a reason for hiding this comment

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

When this code is removed, will the user-agent header be blank?

Copy link
Contributor

@frankyn frankyn May 26, 2021

Choose a reason for hiding this comment

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

Hi @parthea, this change was made because tracking does not support x-goog-api-client header yet. If we were to remove this now, we would now see version numbers internally. It should still have a value from python core package for UserAgent. We are appending gcloud-python/{} which is supported right now.

@tseaver tseaver closed this Sep 2, 2021
@tseaver tseaver deleted the 25-drop-gcloud-python-header branch September 2, 2021 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the googleapis/python-storage API. 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. status: blocked Resolving the issue is dependent on other work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Once x-goog-api-client headers, gccl, is used for storage, remove gcloud-python

3 participants