File tree Expand file tree Collapse file tree
packages/google-cloud-bigtable
google/cloud/bigtable/data/_metrics Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,7 +140,6 @@ class ActiveAttemptMetric:
140140 # time waiting on user to process the response, in nanoseconds
141141 # currently only relevant for ReadRows
142142 application_blocking_time_ns : int = 0
143- # backoff time is added to application_blocking_time_ns
144143 backoff_before_attempt_ns : int = 0
145144
146145
Original file line number Diff line number Diff line change @@ -234,8 +234,7 @@ def on_attempt_complete(
234234 )
235235 self .otel .throttling_latencies .record (flow_throttling , labels )
236236 self .otel .application_latencies .record (
237- (attempt .application_blocking_time_ns + attempt .backoff_before_attempt_ns )
238- / NS_TO_MS ,
237+ attempt .application_blocking_time_ns / NS_TO_MS ,
239238 labels ,
240239 )
241240 if attempt .gfe_latency_ns is not None :
Original file line number Diff line number Diff line change @@ -361,8 +361,7 @@ def test_on_attempt_complete_application_latencies(self):
361361 op = ActiveOperationMetric (op_type = OperationType .READ_ROWS )
362362 handler .on_attempt_complete (attempt , op )
363363 mock_instruments .application_latencies .record .assert_called_once_with (
364- (attempt .application_blocking_time_ns + attempt .backoff_before_attempt_ns )
365- / 1e6 ,
364+ attempt .application_blocking_time_ns / 1e6 ,
366365 mock .ANY ,
367366 )
368367
You can’t perform that action at this time.
0 commit comments