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

Commit c408e14

Browse files
committed
removed uuid
1 parent d167487 commit c408e14

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import time
1919
import re
2020
import logging
21-
import uuid
2221
import contextvars
2322

2423
from enum import Enum
@@ -116,7 +115,6 @@ class CompletedOperationMetric:
116115
"""
117116

118117
op_type: OperationType
119-
uuid: str
120118
duration_ns: int
121119
completed_attempts: list[CompletedAttemptMetric]
122120
final_status: StatusCode
@@ -153,7 +151,6 @@ class ActiveOperationMetric:
153151
"""
154152

155153
op_type: OperationType
156-
uuid: str = field(default_factory=lambda: str(uuid.uuid4()))
157154
state: OperationState = OperationState.CREATED
158155
# create a default backoff generator, initialized with standard default backoff values
159156
backoff_generator: TrackedBackoffGenerator = field(
@@ -371,7 +368,6 @@ def end_with_status(self, status: StatusCode | BaseException) -> None:
371368
duration_ns = self._ensure_positive(time.monotonic_ns() - self.start_time_ns, "duration")
372369
finalized = CompletedOperationMetric(
373370
op_type=self.op_type,
374-
uuid=self.uuid,
375371
completed_attempts=self.completed_attempts,
376372
duration_ns=duration_ns,
377373
final_status=final_status,

0 commit comments

Comments
 (0)