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

fix(spanner): Add credential check for built-in metrics enabling by zdu-strong · Pull Request #14095 · googleapis/google-cloud-java · GitHub

fix(spanner): Add credential check for built-in metrics enabling - #14095

Open
zdu-strong wants to merge 1 commit into
googleapis:mainfrom
zdu-strong:main
Open

fix(spanner): Add credential check for built-in metrics enabling#14095
zdu-strong wants to merge 1 commit into
googleapis:mainfrom
zdu-strong:main

Conversation

zdu-strong commented Aug 18, 2026
edited
Loading

Copy link
Copy Markdown

Issue: The original logic for checking whether to enable built-in metrics (enableBuiltInMetrics) lacked a credential check. This caused telemetry data to still be sent when using the Spanner emulator, which does not require credentials.

Solution: In the enableRPCMetrics method, update the condition to isEnableBuiltInMetrics() && !usesNoCredentials(), so that metric collection is properly skipped when a credential-free environment (such as the emulator) is detected.

issues 12277: Disable native metrics in connection

issues 13038: Do not print exceptions from metric export failures by default

zdu-strong requested review from a team as code owners August 18, 2026 12:40

google-cla Bot commented Aug 18, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Code Review

This pull request updates SpannerOptions.java to ensure that gRPC metrics are only enabled when built-in metrics are enabled and the configuration does not use 'no credentials' (!usesNoCredentials()). As there are no review comments, I have no feedback to provide.

zdu-strong reopened this Aug 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL