Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit d905462

Browse files
committed
added metric controls to table
1 parent 874a9a8 commit d905462

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

google/cloud/bigtable/data/_async/client.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@
7878
from google.cloud.bigtable.data.row_filters import CellsRowLimitFilter
7979
from google.cloud.bigtable.data.row_filters import RowFilterChain
8080

81+
from google.cloud.bigtable.data._metrics import BigtableClientSideMetricsController
82+
8183

8284
if TYPE_CHECKING:
8385
from google.cloud.bigtable.data._helpers import RowKeySamples
@@ -525,6 +527,13 @@ def __init__(
525527
)
526528
self.default_mutate_rows_attempt_timeout = default_mutate_rows_attempt_timeout
527529

530+
self._metrics = BigtableClientSideMetricsController(
531+
project_id=self.client.project,
532+
instance_id=instance_id,
533+
table_id=table_id,
534+
app_profile_id=app_profile_id,
535+
)
536+
528537
self.default_read_rows_retryable_errors = (
529538
default_read_rows_retryable_errors or ()
530539
)

0 commit comments

Comments
 (0)