@@ -350,7 +350,8 @@ public CompletableFuture<Boolean> thenPut(Put put) {
350350 preCheck ();
351351 final Supplier <Span > supplier = new TableOperationSpanBuilder ()
352352 .setTableName (tableName )
353- .setOperation (HBaseSemanticAttributes .Operation .CHECK_AND_MUTATE );
353+ .setOperation (HBaseSemanticAttributes .Operation .CHECK_AND_MUTATE )
354+ .setContainerOperations (put );
354355 return tracedFuture (
355356 () -> RawAsyncTableImpl .this .<Boolean > newCaller (row , put .getPriority (), rpcTimeoutNs )
356357 .action ((controller , loc , stub ) -> RawAsyncTableImpl .mutate (controller , loc , stub , put ,
@@ -366,7 +367,8 @@ public CompletableFuture<Boolean> thenDelete(Delete delete) {
366367 preCheck ();
367368 final Supplier <Span > supplier = new TableOperationSpanBuilder ()
368369 .setTableName (tableName )
369- .setOperation (HBaseSemanticAttributes .Operation .CHECK_AND_MUTATE );
370+ .setOperation (HBaseSemanticAttributes .Operation .CHECK_AND_MUTATE )
371+ .setContainerOperations (delete );
370372 return tracedFuture (
371373 () -> RawAsyncTableImpl .this .<Boolean > newCaller (row , delete .getPriority (), rpcTimeoutNs )
372374 .action ((controller , loc , stub ) -> RawAsyncTableImpl .mutate (controller , loc , stub , delete ,
@@ -383,7 +385,8 @@ public CompletableFuture<Boolean> thenMutate(RowMutations mutations) {
383385 validatePutsInRowMutations (mutations , conn .connConf .getMaxKeyValueSize ());
384386 final Supplier <Span > supplier = new TableOperationSpanBuilder ()
385387 .setTableName (tableName )
386- .setOperation (HBaseSemanticAttributes .Operation .BATCH );
388+ .setOperation (HBaseSemanticAttributes .Operation .BATCH )
389+ .setContainerOperations (mutations );
387390 return tracedFuture (
388391 () -> RawAsyncTableImpl .this
389392 .<Boolean > newCaller (row , mutations .getMaxPriority (), rpcTimeoutNs )
@@ -427,7 +430,8 @@ public CompletableFuture<Boolean> thenPut(Put put) {
427430 validatePut (put , conn .connConf .getMaxKeyValueSize ());
428431 final Supplier <Span > supplier = new TableOperationSpanBuilder ()
429432 .setTableName (tableName )
430- .setOperation (HBaseSemanticAttributes .Operation .CHECK_AND_MUTATE );
433+ .setOperation (HBaseSemanticAttributes .Operation .CHECK_AND_MUTATE )
434+ .setContainerOperations (put );
431435 return tracedFuture (
432436 () -> RawAsyncTableImpl .this .<Boolean > newCaller (row , put .getPriority (), rpcTimeoutNs )
433437 .action ((controller , loc , stub ) -> RawAsyncTableImpl .mutate (controller , loc ,
@@ -443,7 +447,8 @@ public CompletableFuture<Boolean> thenPut(Put put) {
443447 public CompletableFuture <Boolean > thenDelete (Delete delete ) {
444448 final Supplier <Span > supplier = new TableOperationSpanBuilder ()
445449 .setTableName (tableName )
446- .setOperation (HBaseSemanticAttributes .Operation .CHECK_AND_MUTATE );
450+ .setOperation (HBaseSemanticAttributes .Operation .CHECK_AND_MUTATE )
451+ .setContainerOperations (delete );
447452 return tracedFuture (
448453 () -> RawAsyncTableImpl .this .<Boolean > newCaller (row , delete .getPriority (), rpcTimeoutNs )
449454 .action ((controller , loc , stub ) -> RawAsyncTableImpl .mutate (controller , loc , stub , delete ,
@@ -459,7 +464,8 @@ public CompletableFuture<Boolean> thenMutate(RowMutations mutations) {
459464 validatePutsInRowMutations (mutations , conn .connConf .getMaxKeyValueSize ());
460465 final Supplier <Span > supplier = new TableOperationSpanBuilder ()
461466 .setTableName (tableName )
462- .setOperation (HBaseSemanticAttributes .Operation .BATCH );
467+ .setOperation (HBaseSemanticAttributes .Operation .BATCH )
468+ .setContainerOperations (mutations );
463469 return tracedFuture (
464470 () -> RawAsyncTableImpl .this
465471 .<Boolean > newCaller (row , mutations .getMaxPriority (), rpcTimeoutNs )
@@ -482,7 +488,8 @@ public CheckAndMutateWithFilterBuilder checkAndMutate(byte[] row, Filter filter)
482488 public CompletableFuture <CheckAndMutateResult > checkAndMutate (CheckAndMutate checkAndMutate ) {
483489 final Supplier <Span > supplier = new TableOperationSpanBuilder ()
484490 .setTableName (tableName )
485- .setOperation (checkAndMutate );
491+ .setOperation (checkAndMutate )
492+ .setContainerOperations (checkAndMutate .getAction ());
486493 return tracedFuture (() -> {
487494 if (checkAndMutate .getAction () instanceof Put ||
488495 checkAndMutate .getAction () instanceof Delete ||
@@ -536,7 +543,8 @@ public CompletableFuture<CheckAndMutateResult> checkAndMutate(CheckAndMutate che
536543 checkAndMutate (List <CheckAndMutate > checkAndMutates ) {
537544 final Supplier <Span > supplier = new TableOperationSpanBuilder ()
538545 .setTableName (tableName )
539- .setOperation (HBaseSemanticAttributes .Operation .BATCH );
546+ .setOperation (HBaseSemanticAttributes .Operation .BATCH )
547+ .setContainerOperations (checkAndMutates );
540548 return tracedFutures (
541549 () -> batch (checkAndMutates , rpcTimeoutNs ).stream ()
542550 .map (f -> f .thenApply (r -> (CheckAndMutateResult ) r )).collect (toList ()),
@@ -593,7 +601,8 @@ public CompletableFuture<Result> mutateRow(RowMutations mutations) {
593601 long nonce = conn .getNonceGenerator ().newNonce ();
594602 final Supplier <Span > supplier = new TableOperationSpanBuilder ()
595603 .setTableName (tableName )
596- .setOperation (HBaseSemanticAttributes .Operation .BATCH );
604+ .setOperation (HBaseSemanticAttributes .Operation .BATCH )
605+ .setContainerOperations (mutations );
597606 return tracedFuture (
598607 () -> this
599608 .<Result > newCaller (mutations .getRow (), mutations .getMaxPriority (), writeRpcTimeoutNs )
@@ -668,31 +677,35 @@ public void onComplete() {
668677 public List <CompletableFuture <Result >> get (List <Get > gets ) {
669678 final Supplier <Span > supplier = new TableOperationSpanBuilder ()
670679 .setTableName (tableName )
671- .setOperation (HBaseSemanticAttributes .Operation .BATCH );
680+ .setOperation (HBaseSemanticAttributes .Operation .BATCH )
681+ .setContainerOperations (HBaseSemanticAttributes .Operation .GET );
672682 return tracedFutures (() -> batch (gets , readRpcTimeoutNs ), supplier );
673683 }
674684
675685 @ Override
676686 public List <CompletableFuture <Void >> put (List <Put > puts ) {
677687 final Supplier <Span > supplier = new TableOperationSpanBuilder ()
678688 .setTableName (tableName )
679- .setOperation (HBaseSemanticAttributes .Operation .BATCH );
689+ .setOperation (HBaseSemanticAttributes .Operation .BATCH )
690+ .setContainerOperations (HBaseSemanticAttributes .Operation .PUT );
680691 return tracedFutures (() -> voidMutate (puts ), supplier );
681692 }
682693
683694 @ Override
684695 public List <CompletableFuture <Void >> delete (List <Delete > deletes ) {
685696 final Supplier <Span > supplier = new TableOperationSpanBuilder ()
686697 .setTableName (tableName )
687- .setOperation (HBaseSemanticAttributes .Operation .BATCH );
698+ .setOperation (HBaseSemanticAttributes .Operation .BATCH )
699+ .setContainerOperations (HBaseSemanticAttributes .Operation .DELETE );
688700 return tracedFutures (() -> voidMutate (deletes ), supplier );
689701 }
690702
691703 @ Override
692704 public <T > List <CompletableFuture <T >> batch (List <? extends Row > actions ) {
693705 final Supplier <Span > supplier = new TableOperationSpanBuilder ()
694706 .setTableName (tableName )
695- .setOperation (HBaseSemanticAttributes .Operation .BATCH );
707+ .setOperation (HBaseSemanticAttributes .Operation .BATCH )
708+ .setContainerOperations (actions );
696709 return tracedFutures (() -> batch (actions , rpcTimeoutNs ), supplier );
697710 }
698711
0 commit comments