Skip to content

Adding ability to send version info header on HTTP requests. - #3035

Merged
dhermes merged 1 commit into
googleapis:masterfrom
dhermes:fix-3006
Feb 21, 2017
Merged

Adding ability to send version info header on HTTP requests.#3035
dhermes merged 1 commit into
googleapis:masterfrom
dhermes:fix-3006

Conversation

@dhermes

Copy link
Copy Markdown
Contributor

Added an "extra headers" feature to enable this. I am not a fan
of changing Connection() so haphazardly, but I hope to
completely re-factor / destory Connection() in the near-term
so I am less worried.

This only adds the storage and datastore header info, for the
purposes of a simple review. Once we agree on the approach,
I can add support in the other subpackages.

@dhermesdhermes added api: datastore Issues related to the Datastore API. hygiene api: storage Issues related to the Cloud Storage API. labels Feb 17, 2017
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 17, 2017
@daspecsterdaspecster mentioned this pull request Feb 17, 2017
3 tasks
Added an "extra headers" feature to enable this. I am not a fan
of changing `Connection()` so haphazardly, but I hope to
completely re-factor / destory `Connection()` in the near-term
so I am less worried.
This only adds the storage and datastore header info, for the
purposes of a simple review. Once we agree on the approach,
I can add support in the other subpackages.
_USE_GRPC = _HAVE_GRPC and not _DISABLE_GRPC
_DATASTORE_DIST = get_distribution('google-cloud-datastore')
_CLIENT_INFO = connection_module.CLIENT_INFO_TEMPLATE.format(
_DATASTORE_DIST.version)

This comment was marked as spam.

This comment was marked as spam.

@dhermes

Copy link
Copy Markdown
ContributorAuthor

Thanks @tseaver. Will hold off for @lukesneeringer review before merging

@lukesneeringerlukesneeringer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks fine to me. I am not clear how the where the handling for the gccl segment is when something is using GAX. I assume that is in a different PR.

@dhermes
dhermes merged commit e675367 into googleapis:masterFeb 21, 2017
@dhermes
dhermes deleted the fix-3006 branch February 21, 2017 16:46
@dhermes

Copy link
Copy Markdown
ContributorAuthor

Will follow up with a PR for all other HTTP impls and then a separate PR getting this to work with GAPIC generated surfaces

richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
Adding ability to send version info header on HTTP requests.
parthea pushed a commit that referenced this pull request Nov 24, 2025
Adding ability to send version info header on HTTP requests.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: datastoreIssues related to the Datastore API.api: storageIssues related to the Cloud Storage API.cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@dhermes@lukesneeringer@tseaver@daspecster@googlebot