Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -424,12 +424,12 @@ public CompletableFuture<Hbck> getHbck() {
}
});
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private boolean isMeta(TableName tableName) {

private <T> CompletableFuture<T> tracedLocationFuture(Supplier<CompletableFuture<T>> action,
Function<T, List<String>> getRegionNames, TableName tableName, String methodName) {
Span span = createTableSpan(getClass().getSimpleName() + "." + methodName, tableName);
Span span = createTableSpan("AsyncRegionLocator." + methodName, tableName);
try (Scope scope = span.makeCurrent()) {
CompletableFuture<T> future = action.get();
FutureUtils.addListener(future, (resp, error) -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,6 @@ public static CompletableFuture<AsyncConnection> createAsyncConnection(Configura
}
});
return future;
}, ConnectionFactory.class.getSimpleName() + ".createAsyncConnection");
}, "ConnectionFactory.createAsyncConnection");
}
}