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

Commit 8049be5

Browse files
committed
Merge branch 'csm_1_data_model' into csm_2_instrumentation
2 parents ff7e681 + de5d07b commit 8049be5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

google/cloud/bigtable/data/_metrics/data_model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def start(self) -> None:
189189
return self._handle_error(INVALID_STATE_ERROR.format("start", self.state))
190190
self.start_time_ns = time.monotonic_ns()
191191

192-
def start_attempt(self) -> ActiveAttemptMetric:
192+
def start_attempt(self) -> ActiveAttemptMetric | None:
193193
"""
194194
Called to initiate a new attempt for the operation.
195195
@@ -413,7 +413,7 @@ def _handle_error(message: str) -> None:
413413
full_message = f"Error in Bigtable Metrics: {message}"
414414
LOGGER.warning(full_message)
415415

416-
def __aenter__(self):
416+
def __enter__(self):
417417
"""
418418
Implements the async manager protocol
419419
@@ -423,7 +423,7 @@ def __aenter__(self):
423423
"""
424424
return self
425425

426-
def __aexit__(self, exc_type, exc_val, exc_tb):
426+
def __exit__(self, exc_type, exc_val, exc_tb):
427427
"""
428428
Implements the context manager protocol
429429

0 commit comments

Comments
 (0)