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

bigquery: set user-agent #9

Closed
stephenplusplus opened this issue Nov 17, 2017 · 3 comments
Closed

bigquery: set user-agent #9

stephenplusplus opened this issue Nov 17, 2017 · 3 comments
Assignees
Labels
api: bigquery Issues related to the googleapis/nodejs-bigquery API. 🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@stephenplusplus
Copy link
Contributor

From @kwent on October 6, 2017 7:19

Hi,

I'm trying to override the user-agent used by biquery.

I browsed the code but i don't see any obvious way to do it.

Could you walk me or is it something which would needs to be implemented ?

Regards

Copied from original issue: googleapis/google-cloud-node#2659

@stephenplusplus
Copy link
Contributor Author

The User-Agent cannot be overridden. It identifies the library @google-cloud/bigquery to the API servers. What is the reason you would need to change it?

@stephenplusplus
Copy link
Contributor Author

From @kwent on October 6, 2017 20:54

Hi @stephenplusplus,

In order for Google to obtain usage insights while participating to the Google Cloud Technology Partners (https://cloud.google.com/partners/), they ask us to modify the User Agent compliant with RFC
(https://tools.ietf.org/html/rfc7231#section-5.5.3) matching our product name/version ...

Suggested format
"<prod_name>/ver (GPN:<company name>; <other comments>) <other prod>/ver "*
Example
"Product_A/1.1 (GPN:Partner_ABC; staging) Product_B/1.3
Google­HTTP­Java­Client/1.20.0"

We currently use in our product the bigquery nodejs library and are trying to figure out how could we make this happen.

Regards

@stephenplusplus
Copy link
Contributor Author

I see now, thank you for explaining.

@lukesneeringer we currently write the U-A string ourselves, without allowing user input. How would you like us to address this issue?

@google-cloud-label-sync google-cloud-label-sync bot added the api: bigquery Issues related to the googleapis/nodejs-bigquery API. label Jan 31, 2020
@yoshi-automation yoshi-automation added 🚨 This issue needs some love. triage me I really want to be triaged. labels Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/nodejs-bigquery API. 🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants