GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Reverting user-agent change that came with rename. by dhermes · Pull Request #2284 · googleapis/google-cloud-python

Conversation

@dhermes

@dhermes dhermes commented Sep 9, 2016

Copy link
Copy Markdown
Contributor

Fixes #2271.

See https://github.com/GoogleCloudPlatform/gcloud-common/issues/179 for context.

Also moving gRPC user-agent from plugin to channel options. For context on that change, see the comment by @murgatroid99: https://github.com/GoogleCloudPlatform/google-cloud-node/pull/1568/files#r77727186

As for grpc.primary_user_agent vs grpc.secondary_user_agent, @nathanielmanistaatgoogle said

That way the user agent as it appears on the wire should be "primarily gRPC, secondarily gcloud" rather than "primarily gcloud ".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
dhermes added 2 commits September 8, 2016 19:34
@dhermes
Reverting user-agent change that came with rename.
20a52d5
Fixes googleapis#2271.

See https://github.com/GoogleCloudPlatform/gcloud-common/issues/179 for context.
@dhermes
Moving gRPC user-agent from plugin to channel options.
bf8dcce
For context, see:
https://github.com/GoogleCloudPlatform/google-cloud-node/pull/1568/files/328765b5ea4b29a5fca5a4a01981f5abddbedcfc#r77727186
@dhermes dhermes added the api: core label Sep 9, 2016
@dhermes dhermes assigned daspecster and tseaver Sep 9, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 9, 2016
@tseaver

tseaver commented Sep 9, 2016

Copy link
Copy Markdown
Contributor

LGTM. The primary / secondary bit doesn't really make sense, but if it is what the back-end team wants, I can acquiesce.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes dhermes added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Sep 9, 2016
@dhermes

dhermes commented Sep 9, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Added the "don't merge" label. I'll hold off on merging until @nathanielmanistaatgoogle and/or @murgatroid99 can weigh in.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nathanielmanistaatgoogle

nathanielmanistaatgoogle commented Sep 9, 2016

Copy link
Copy Markdown

Luhguhtum, but I'd also appreciate hearing from @murgatroid99.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@murgatroid99

murgatroid99 commented Sep 9, 2016

Copy link
Copy Markdown

I don't actually know what the primary vs secondary user agents are supposed to be, semantically. Node appends its own user agent string to the provided primary user agent string, so I just assumed that the calling library was expected to provide its own primary user agent string.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes dhermes removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Sep 9, 2016
@dhermes

dhermes commented Sep 9, 2016

Copy link
Copy Markdown
Contributor Author

I'm going to merge then since the consensus from the two gRPC maintainers is like 75% of a thumbs up: "do it" and "not sure"

I'd say this should probably be documented somewhere though?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes
dhermes merged commit 891b060 into googleapis:master Sep 9, 2016
@dhermes
dhermes deleted the user-agent-options branch September 9, 2016 15:20
@nathanielmanistaatgoogle

nathanielmanistaatgoogle commented Sep 9, 2016

Copy link
Copy Markdown

@dhermes: Aww, phooey, I just had a conversation on your behalf with @ctiller.

A few takeaways:

  • If an application attempts to set user-agent as though it were an ordinary piece of metadata, the core will eat the supplied value and not put it on the wire, so using (a) channel argument(s) is the only way to alter the user-agent sent to the server along with your RPCs. So the whole conversation we had the other day about which means was preferred apparently could have been resolved by the knowledge that only one means is effective.
  • Culturally, the "most important" or "most specific" information in the user-agent string goes first, so I erred in guiding you to pass your application information as a secondary, rather than primary, user agent channel arg. My apologies; today I learned.

I've filed grpc.github.io issue 380 to track improving our documentation for user-agent application best practices.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes added a commit to dhermes/google-cloud-python that referenced this pull request Sep 9, 2016
@dhermes
Upgrading gRPC user agent from secondary to primary.
58a0ceb
Follow on to googleapis#2284.
@dhermes

dhermes commented Sep 9, 2016

Copy link
Copy Markdown
Contributor Author

It's an easy fix, I'll send the PR to fix post-haste. Thanks for looking into it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dhermes dhermes mentioned this pull request Sep 9, 2016
Upgrading gRPC user agent from secondary to primary. #2286
Merged
@dhermes dhermes mentioned this pull request Sep 19, 2016
Cut 0.19.0 release. #2270
Merged
@theacodes theacodes unassigned daspecster Sep 28, 2018
parthea pushed a commit that referenced this pull request Nov 24, 2025
@ohmayr
feat: add client logging support for sync gRPC (#2284)
d964d09
parthea pushed a commit that referenced this pull request Apr 1, 2026
@TrevorBergeron
refactor: WindowOpNode can create multiple cols (#2284)
2e2b0cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@tseaver tseaver

Labels

api: core cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@dhermes @tseaver @nathanielmanistaatgoogle @murgatroid99 @daspecster @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.