@@ -1353,6 +1353,7 @@ async def execute_rpc():
13531353 ),
13541354 timeout = next (attempt_timeout_gen ),
13551355 retry = None ,
1356+ metadata = [operation_metric .interceptor_metadata ],
13561357 )
13571358 return [(s .row_key , s .offset_bytes ) async for s in results ]
13581359
@@ -1488,6 +1489,7 @@ async def mutate_row(
14881489 ),
14891490 timeout = attempt_timeout ,
14901491 retry = None ,
1492+ metadata = [operation_metric .interceptor_metadata ],
14911493 )
14921494 return await CrossSync .retry_target (
14931495 target ,
@@ -1608,7 +1610,7 @@ async def check_and_mutate_row(
16081610 false_case_mutations = [false_case_mutations ]
16091611 false_case_list = [m ._to_pb () for m in false_case_mutations or []]
16101612
1611- with self ._metrics .create_operation (OperationType .CHECK_AND_MUTATE ):
1613+ with self ._metrics .create_operation (OperationType .CHECK_AND_MUTATE ) as op :
16121614 result = await self .client ._gapic_client .check_and_mutate_row (
16131615 request = CheckAndMutateRowRequest (
16141616 true_mutations = true_case_list ,
@@ -1624,6 +1626,7 @@ async def check_and_mutate_row(
16241626 ),
16251627 timeout = operation_timeout ,
16261628 retry = None ,
1629+ metadata = [op .interceptor_metadata ],
16271630 )
16281631 return result .predicate_matched
16291632
@@ -1666,7 +1669,7 @@ async def read_modify_write_row(
16661669 if not rules :
16671670 raise ValueError ("rules must contain at least one item" )
16681671
1669- with self ._metrics .create_operation (OperationType .READ_MODIFY_WRITE ):
1672+ with self ._metrics .create_operation (OperationType .READ_MODIFY_WRITE ) as op :
16701673 result = await self .client ._gapic_client .read_modify_write_row (
16711674 request = ReadModifyWriteRowRequest (
16721675 rules = [rule ._to_pb () for rule in rules ],
@@ -1678,6 +1681,7 @@ async def read_modify_write_row(
16781681 ),
16791682 timeout = operation_timeout ,
16801683 retry = None ,
1684+ metadata = [op .interceptor_metadata ],
16811685 )
16821686 # construct Row from result
16831687 return Row ._from_pb (result .row )
0 commit comments