Skip to content

impl(bigtable): export grpc metrics - #16241

Draft
scotthart wants to merge 1 commit into
googleapis:mainfrom
scotthart:bigtable_grpc_metrics
Draft

impl(bigtable): export grpc metrics#16241
scotthart wants to merge 1 commit into
googleapis:mainfrom
scotthart:bigtable_grpc_metrics

Conversation

@scotthart

Copy link
Copy Markdown
Member

No description provided.

@product-auto-label product-auto-label Bot added the api: bigtable Issues related to the Bigtable API. label Jul 7, 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 introduces a GrpcMetricsExporter to export gRPC OpenTelemetry metrics for Google Cloud Bigtable, integrating it into the DataConnectionImpl and adding corresponding build configurations and unit tests. The review feedback highlights several key improvements: enforcing the singleton pattern for GrpcMetricsExporterRegistry by making its constructor private, optimizing latency boundary generation via static caching, removing an unused default parameter in an internal namespace lambda to align with the style guide, and resolving a potential use-after-move/evaluation-order issue when constructing MonitoredResourceResult.

Comment thread google/cloud/bigtable/internal/grpc_metrics_exporter.h
Comment thread google/cloud/bigtable/internal/grpc_metrics_exporter.cc Outdated
Comment thread google/cloud/bigtable/internal/grpc_metrics_exporter.cc Outdated
Comment thread google/cloud/bigtable/internal/grpc_metrics_exporter.cc Outdated
@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 125 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.23%. Comparing base (7c46f16) to head (6b8732f).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...d/bigtable/tests/observability_integration_test.cc 12.76% 123 Missing ⚠️
...d/bigtable/testing/embedded_server_test_fixture.cc 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16241      +/-   ##
==========================================
- Coverage   92.30%   92.23%   -0.07%     
==========================================
  Files        2226     2227       +1     
  Lines      208531   208790     +259     
==========================================
+ Hits       192475   192585     +110     
- Misses      16056    16205     +149     

☔ 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 force-pushed the bigtable_grpc_metrics branch from 3ad3d37 to a83c1ee Compare July 22, 2026 20:15
@scotthart
scotthart force-pushed the bigtable_grpc_metrics branch from c9f7c9f to 831c198 Compare July 23, 2026 00:23
@scotthart
scotthart force-pushed the bigtable_grpc_metrics branch from 3c6546b to 9d1cefb Compare July 29, 2026 15:21
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.

1 participant