Title: bigtable: `mutations_batcher()` causes "Missing resource_project attribute for metric …" warnings every 60s · Issue #18546 · googleapis/google-cloud-python · GitHub
Open Graph Title: bigtable: `mutations_batcher()` causes "Missing resource_project attribute for metric …" warnings every 60s · Issue #18546 · googleapis/google-cloud-python
X Title: bigtable: `mutations_batcher()` causes "Missing resource_project attribute for metric …" warnings every 60s · Issue #18546 · googleapis/google-cloud-python
Description: Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue Once a process has flushed a MutationsBatcher, the built-in client-side metrics exporter logs this warni...
Open Graph Description: Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue Once a process has flushed a MutationsBatcher, the built-in clie...
X Description: Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue Once a process has flushed a MutationsBatcher, the built-in clie...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/18546
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bigtable: `mutations_batcher()` causes \"Missing resource_project attribute for metric …\" warnings every 60s","articleBody":"### Determine this is the right repository\n\n- [x] I determined this is the correct repository in which to report this bug.\n\n### Summary of the issue\n\nOnce a process has flushed a `MutationsBatcher`, the built-in client-side metrics exporter logs this warning on every export (every 60s), for each affected metric, until the process exits:\n\n```\nWARNING google.cloud.bigtable.data._metrics.handlers.gcp_exporter: Missing resource_project attribute for metric operation_latencies\n```\n\nOther operations such as `bulk_mutate_rows`, `read_rows` and `mutate_row` don't trigger it. In our production service this produced about 60k warnings in two days, and the batcher's metrics are never exported.\n\n### API client name and version\n\ngoogle-cloud-bigtable 2.48.0 (also present in 2.49.0)\n\n### Reproduction steps: code\n\n```python\nimport logging\nimport time\n\nfrom google.cloud.bigtable.data import BigtableDataClient, RowMutationEntry, SetCell\n\nlogging.basicConfig(level=logging.WARNING)\n\nclient = BigtableDataClient(project=\"my-project\")\ntable = client.get_table(\"my-instance\", \"my-table\")\n\nwith table.mutations_batcher() as batcher:\n batcher.append(RowMutationEntry(b\"row\", [SetCell(\"family\", b\"q\", b\"v\")]))\n\ntime.sleep(130)\n```\n\n### Reproduction steps: actual results\n\n```\nWARNING:google.cloud.bigtable.data._metrics.handlers.gcp_exporter:Missing resource_project attribute for metric operation_latencies\n...\n```\n\nThe warning appears once per affected metric on every 60s export.\n\n### Reproduction steps: expected results\n\nNo warnings. The batcher's metrics are exported with the same resource labels as `bulk_mutate_rows`.\n\n### OS & version + platform\n\nLinux (GKE, python:3.14-slim)\n\n### Python environment\n\nPython 3.14.8\n\n### Python dependencies\n\ngoogle-cloud-bigtable 2.48.0, google-api-core 2.40.0, grpcio 1.84.0, opentelemetry-sdk 1.44.0\n","author":{"url":"https://github.com/zoola969","@type":"Person","name":"zoola969"},"datePublished":"2026-10-02T11:19:12Z","url":"https://github.com/googleapis/google-cloud-python/issues/18546"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5876c4a3-beae-6905-aba1-49a875404c06 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D560:1E492C:25AFD5:337296:6AFE1A5E |
| html-safe-nonce | 24a014462f39af1029d7d32785bcaf35ab193d68e5c339b2e583ae5893c7cb52 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTYwOjFFNDkyQzoyNUFGRDU6MzM3Mjk2OjZBRkUxQTVFIiwidmlzaXRvcl9pZCI6IjgxNzg4NDkxMzkxNTc1MDY2NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 882f0f108f5acc53059538f18a424f7edfb2766ed9df1790204fa02da280fecf |
| hovercard-subject-tag | issue:5676649265 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/18546/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a6954613c87ca02624f02c67e6bd6bb2f4b9dfb5d48cc36fd35d6691367130e/googleapis/google-cloud-python/issues/18546 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a6954613c87ca02624f02c67e6bd6bb2f4b9dfb5d48cc36fd35d6691367130e/googleapis/google-cloud-python/issues/18546 |
| og:image:alt | Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue Once a process has flushed a MutationsBatcher, the built-in clie... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zoola969 |
| hostname | github.com |
| expected-hostname | github.com |
| None | d0525ab1464526bf4532a5551aa348cf100dff75ef808a96fc67a08b1d946aa9 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fef3993a71fa20f7be8e167132fbf9619bc66e12 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width