ruanhui created HBASE-28080:
-------------------------------

             Summary: correct span name in 
AbstractRpcBasedConnectionRegistry#getActiveMaster
                 Key: HBASE-28080
                 URL: https://issues.apache.org/jira/browse/HBASE-28080
             Project: HBase
          Issue Type: Bug
          Components: Client
    Affects Versions: 3.0.0-alpha-4
            Reporter: ruanhui
            Assignee: ruanhui
             Fix For: 4.0.0-alpha-1


It looks like that the span name does not correspond to what is actually done.
 
public CompletableFuture<ServerName> getActiveMaster() {
return tracedFuture(
() -> this
.<GetActiveMasterResponse> call(
(c, s, d) -> s.getActiveMaster(c, GetActiveMasterRequest.getDefaultInstance(), 
d),
GetActiveMasterResponse::hasServerName, "getActiveMaster()")
.thenApply(resp -> ProtobufUtil.toServerName(resp.getServerName())),
getClass().getSimpleName() + ".getClusterId");
}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to