FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add informational headers to gRPC requests sent for datastore · Issue #2230 · googleapis/google-cloud-python · GitHub

Add informational headers to gRPC requests sent for datastore #2230

Description

See googleapis/google-cloud-node#1542

We need to modify the headers being sent to:

headers = [
    ('authorization', 'Bearer ' + access_token),
    ('user-agent', self._user_agent),
    ('google-cloud-resource-prefix', 'projects/my-project-id'),
]

Though we may want to do this on a per-request basis. Probably not, since self._user_agent doesn't change after the MetadataPlugin object is created, even if the user agent on the original Client has changed.

Metadata

Metadata

Labels

api: datastoreIssues related to the Datastore API.grpcpriority: p2Moderately-important priority. Fix may not be included in next release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


Back | FazBrowse Home | New Git URL