René's URL Explorer Experiment


Title: (google-cloud-spanner) Built-in metrics fail when one process uses databases in different projects · Issue #18155 · googleapis/google-cloud-python · GitHub

Open Graph Title: (google-cloud-spanner) Built-in metrics fail when one process uses databases in different projects · Issue #18155 · googleapis/google-cloud-python

X Title: (google-cloud-spanner) Built-in metrics fail when one process uses databases in different projects · Issue #18155 · googleapis/google-cloud-python

Description: Environment details OS type and version: Linux (also happens on macOS) Python version: 3.13 google-cloud-spanner version: 3.68.0 Steps to reproduce In one process, create two clients for databases in two different projects. Run a query o...

Open Graph Description: Environment details OS type and version: Linux (also happens on macOS) Python version: 3.13 google-cloud-spanner version: 3.68.0 Steps to reproduce In one process, create two clients for databases ...

X Description: Environment details OS type and version: Linux (also happens on macOS) Python version: 3.13 google-cloud-spanner version: 3.68.0 Steps to reproduce In one process, create two clients for databases ...

Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/18155

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"(google-cloud-spanner) Built-in metrics fail when one process uses databases in different projects","articleBody":"#### Environment details\n\n- OS type and version: Linux (also happens on macOS)\n- Python version: 3.13\n- `google-cloud-spanner` version: 3.68.0\n\n#### Steps to reproduce\n\n1. In one process, create two clients for databases in two different projects.\n2. Run a query on each.\n3. Wait a minute for the metrics export.\n\n#### Code example\n\n```python\nfrom google.cloud import spanner\n\na = spanner.Client(project=\"project-a\")\nb = spanner.Client(project=\"project-b\")\n\na.instance(\"i\").database(\"d\").snapshot().execute_sql(\"SELECT 1\")\nb.instance(\"i\").database(\"d\").snapshot().execute_sql(\"SELECT 1\")\n```\n\n#### What happens\n\nThe metrics export fails, and no metrics show up in Cloud Monitoring for either project:\n\n```\nInvalidArgument: 400 Field resource.labels.project_id had an invalid value of\n\"project-b\": if present, must be the project number or ID in the request name\n(projects/project-a).\n```\n\nWhichever client is created first decides where all metrics go, so everything from the other project is rejected — and it takes the first project's metrics down with it, since they're sent in the same request.\n\n#### What I expected\n\nMetrics for each database go to that database's project. Running against several projects is pretty normal, and right now it means no built-in metrics at all.\n\n#### What I tried\n\n`SPANNER_DISABLE_BUILTIN_METRICS=true` and `Client(disable_builtin_metrics=True)` both work, but only by giving up the metrics. As far as I can tell there's no way to pass in my own exporter or meter provider, so there's no way to keep them. Java has this (googleapis/google-cloud-java#13679) and there's an open request for Go (googleapis/google-cloud-go#11204), but I couldn't find anything similar here.\n","author":{"url":"https://github.com/zoola969","@type":"Person","name":"zoola969"},"datePublished":"2026-08-19T11:01:01Z","url":"https://github.com/googleapis/google-cloud-python/issues/18155"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:23b4a2cc-a892-a7e1-f869-da7634c61df9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8D86:2B1963:ACE5ED:EAD703:6AFE696A
html-safe-nonce440152bb204f0dcac4e32ecc674f90e4267a4cf84c86fc530a9f5a125b17cd6d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDg2OjJCMTk2MzpBQ0U1RUQ6RUFENzAzOjZBRkU2OTZBIiwidmlzaXRvcl9pZCI6IjM1Nzc2NTIwNDkzNDIyNjE2MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac953c6889a6acc9331be84f47bda6b1c85c0fa8a8f38aa6b5f9076d3f2b4bb883
hovercard-subject-tagissue:5191884947
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/18155/issue_layout
twitter:imagehttps://opengraph.githubassets.com/eafa3d009954648a8544ca7d3c0abe8bf73f5cafa3402f519af4a392362ba4ef/googleapis/google-cloud-python/issues/18155
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/eafa3d009954648a8544ca7d3c0abe8bf73f5cafa3402f519af4a392362ba4ef/googleapis/google-cloud-python/issues/18155
og:image:altEnvironment details OS type and version: Linux (also happens on macOS) Python version: 3.13 google-cloud-spanner version: 3.68.0 Steps to reproduce In one process, create two clients for databases ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamezoola969
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id16316451
octolytics-dimension-repository_nwogoogleapis/google-cloud-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id16316451
octolytics-dimension-repository_network_root_nwogoogleapis/google-cloud-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/googleapis/google-cloud-python/issues/18155#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F18155
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F18155
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fgoogle-cloud-python
Reloadhttps://github.com/googleapis/google-cloud-python/issues/18155
Reloadhttps://github.com/googleapis/google-cloud-python/issues/18155
Reloadhttps://github.com/googleapis/google-cloud-python/issues/18155
googleapishttps://github.com/googleapis
google-cloud-pythonhttps://github.com/googleapis/google-cloud-python
Codehttps://github.com/googleapis/google-cloud-python
Issues450 (450)https://github.com/googleapis/google-cloud-python/issues
Pull requests200 (200)https://github.com/googleapis/google-cloud-python/pulls
Discussionshttps://github.com/googleapis/google-cloud-python/discussions
Actionshttps://github.com/googleapis/google-cloud-python/actions
Projectshttps://github.com/googleapis/google-cloud-python/projects
Security and qualityhttps://github.com/googleapis/google-cloud-python/security
Insightshttps://github.com/googleapis/google-cloud-python/insights
https://github.com/googleapis/google-cloud-python
New issuehttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/18155
New issuehttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/18155
#18750https://github.com/googleapis/google-cloud-python/pull/18750
(google-cloud-spanner) Built-in metrics fail when one process uses databases in different projectshttps://github.com/googleapis/google-cloud-python/issues/18155#top
#18750https://github.com/googleapis/google-cloud-python/pull/18750
api: spannerIssues related to the Spanner API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20spanner%22
https://github.com/zoola969
zoola969https://github.com/zoola969
on Aug 19, 2026https://github.com/googleapis/google-cloud-python/issues/18155#issue-5191884947
googleapis/google-cloud-java#13679https://github.com/googleapis/google-cloud-java/pull/13679
googleapis/google-cloud-go#11204https://github.com/googleapis/google-cloud-go/issues/11204
daniel-sanchehttps://github.com/daniel-sanche
api: spannerIssues related to the Spanner API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20spanner%22
on Oct 26, 2026https://github.com/googleapis/google-cloud-python/issues/18155#event-34287540583
Sign up for freehttps://github.com/signup?return_to=https://github.com/googleapis/google-cloud-python/issues/18155
Sign in to commenthttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/18155
api: spannerIssues related to the Spanner API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20spanner%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.