Skip to content

Commit

Permalink
added metric controls to table
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Jan 26, 2024
1 parent 874a9a8 commit d905462
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions google/cloud/bigtable/data/_async/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@
from google.cloud.bigtable.data.row_filters import CellsRowLimitFilter
from google.cloud.bigtable.data.row_filters import RowFilterChain

from google.cloud.bigtable.data._metrics import BigtableClientSideMetricsController


if TYPE_CHECKING:
from google.cloud.bigtable.data._helpers import RowKeySamples
Expand Down Expand Up @@ -525,6 +527,13 @@ def __init__(
)
self.default_mutate_rows_attempt_timeout = default_mutate_rows_attempt_timeout

self._metrics = BigtableClientSideMetricsController(
project_id=self.client.project,
instance_id=instance_id,
table_id=table_id,
app_profile_id=app_profile_id,
)

self.default_read_rows_retryable_errors = (
default_read_rows_retryable_errors or ()
)
Expand Down

0 comments on commit d905462

Please sign in to comment.