Skip to content

fix(Spanner): disable built-in metrics for custom endpoints and emulator - #9867

Draft
bshaffer wants to merge 1 commit into
mainfrom
spanner/disable-metrics-custom-endpoint
Draft

bshaffer wants to merge 1 commit into
mainfrom
spanner/disable-metrics-custom-endpoint

Conversation

@bshaffer

Copy link
Copy Markdown
Contributor

Follow-up to #9860. Built-in client-side metrics only target the default telemetry endpoint, so disable them when a custom apiEndpoint, the emulator, or insecure credentials are configured:

  • Disable built-in metrics as a no-op when apiEndpoint, hasEmulator / SPANNER_EMULATOR_HOST, or InsecureCredentialsWrapper is set
  • Respect GOOGLE_CLOUD_UNIVERSE_DOMAIN in OtlpMetricsExporter
  • Preserve caller credentialsConfig options (authHttpHandler, quotaProject, authCache, keyFile) when building metrics credentials
  • Update docs and add unit tests

@product-auto-label product-auto-label Bot added the api: spanner Issues related to the Spanner API. label Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the Spanner API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant