diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncConnectionImpl.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncConnectionImpl.java index 9c02bc39f20..78fe8a8a76c 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncConnectionImpl.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncConnectionImpl.java @@ -424,12 +424,12 @@ class AsyncConnectionImpl implements AsyncConnection { } }); return future; - }, getClass().getName() + ".getHbck"); + }, "AsyncConnection.getHbck"); } @Override public Hbck getHbck(ServerName masterServer) throws IOException { - Span span = TraceUtil.createSpan(getClass().getName() + ".getHbck") + Span span = TraceUtil.createSpan("AsyncConnection.getHbck") .setAttribute(TraceUtil.SERVER_NAME_KEY, masterServer.getServerName()); try (Scope scope = span.makeCurrent()) { // we will not create a new connection when creating a new protobuf stub, and for hbck there diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncRegionLocator.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncRegionLocator.java index 9219c95c15e..716598af432 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncRegionLocator.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncRegionLocator.java @@ -98,7 +98,7 @@ class AsyncRegionLocator { private CompletableFuture tracedLocationFuture(Supplier> action, Function> getRegionNames, TableName tableName, String methodName) { - Span span = createTableSpan(getClass().getSimpleName() + "." + methodName, tableName); + Span span = createTableSpan("AsyncRegionLocator." + methodName, tableName); try (Scope scope = span.makeCurrent()) { CompletableFuture future = action.get(); FutureUtils.addListener(future, (resp, error) -> { diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionFactory.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionFactory.java index bdf438241ca..a3cf55715bd 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionFactory.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionFactory.java @@ -305,6 +305,6 @@ public class ConnectionFactory { } }); return future; - }, ConnectionFactory.class.getSimpleName() + ".createAsyncConnection"); + }, "ConnectionFactory.createAsyncConnection"); } }