Skip to content

vertexai|community|genai: Change the client_library_version to gapic_version in gapic client's info. #919

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shawn-yang-google
Copy link
Contributor

PR Description

Relevant issues

Type

πŸ†• New Feature
πŸ› Bug Fix
🧹 Refactoring
πŸ“– Documentation
πŸš„ Infrastructure
βœ… Test

Changes(optional)

Testing(optional)

Note(optional)

@shawn-yang-google shawn-yang-google force-pushed the gapic-version branch 3 times, most recently from e07d5da to 3f6a0ce Compare May 15, 2025 22:28
return ClientInfo(
client_library_version=client_library_version,
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's keep both, please

we might rely on client_library_version in some other place

Copy link
Collaborator

Choose a reason for hiding this comment

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

just send both client_library_version and additionally gapic_version= client_library_version

@@ -193,8 +193,8 @@ def test_get_user_agent_with_telemetry_env_variable(
) -> None:
mock_version.return_value = "1.2.3"
mock_environ_get.return_value = True
client_lib_version, user_agent_str = get_user_agent(module="test-module")
assert client_lib_version == "1.2.3-test-module+remote_reasoning_engine"
gapic_version, user_agent_str = get_user_agent(module="test-module")
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think we need this change (as mentioned above)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants