Skip to content

impl(bigtable): only record client schema metric when instance is available - #16409

Merged
scotthart merged 2 commits into
googleapis:mainfrom
scotthart:bigtable_dp_metric_no_instance
Sep 2, 2026
Merged

impl(bigtable): only record client schema metric when instance is available#16409
scotthart merged 2 commits into
googleapis:mainfrom
scotthart:bigtable_dp_metric_no_instance

Conversation

@scotthart

Copy link
Copy Markdown
Member

The legacy static pool Connection does not require specifying an instance, which makes recording/exporting a client schema metric invalid.

@scotthart
scotthart requested a review from a team as a code owner September 2, 2026 16:48
@product-auto-label product-auto-label Bot added the api: bigtable Issues related to the Bigtable API. label Sep 2, 2026

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

Copy link
Copy Markdown

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 updates google/cloud/bigtable/data_connection.cc by removing the OpenTelemetry metrics recording block from MakeSingleStubDataConnection and adding an !instances.empty() check before recording metrics in MakeInstanceAffinityDataConnection. I have no additional feedback to provide.

@codecov

codecov Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.26%. Comparing base (fd8e805) to head (4b8e892).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16409      +/-   ##
==========================================
+ Coverage   92.24%   92.26%   +0.02%     
==========================================
  Files        2246     2246              
  Lines      212296   212291       -5     
==========================================
+ Hits       195825   195872      +47     
+ Misses      16471    16419      -52     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@scotthart
scotthart enabled auto-merge (squash) September 2, 2026 19:07
@scotthart
scotthart merged commit 6c82dc0 into googleapis:main Sep 2, 2026
75 of 76 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the Bigtable API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants