Skip to content

feat(spanner): log client configuration at startup#17040

Draft
sinhasubham wants to merge 1 commit into
mainfrom
client_config
Draft

feat(spanner): log client configuration at startup#17040
sinhasubham wants to merge 1 commit into
mainfrom
client_config

Conversation

@sinhasubham
Copy link
Copy Markdown
Contributor

This is an already reviewed change as part of this PR in old repo.

This change introduces logging for Spanner client options upon initialization.

This allows customers to easily capture and inspect the configuration being used, which is valuable for debugging and verification.

This feature mirrors the existing logSpannerOptions functionality in the Java client, improving consistency across client libraries. googleapis/java-spanner#4141

@sinhasubham sinhasubham changed the title Client config feat(spanner): log client configuration at startup May 12, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request replaces pickle with json in partition_helper.py to improve security and introduces a feature to log Spanner client options via an environment variable. Review feedback recommends internalizing the host attribute to _host to avoid naming conflicts and suggests using public properties instead of private attributes for logging to improve consistency.

Comment thread packages/google-cloud-spanner/google/cloud/spanner_v1/client.py Outdated
Comment thread packages/google-cloud-spanner/google/cloud/spanner_v1/client.py
Comment thread packages/google-cloud-spanner/google/cloud/spanner_v1/_async/client.py Outdated
Comment thread packages/google-cloud-spanner/google/cloud/spanner_v1/_async/client.py Outdated
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.

1 participant