} finally {
traceConnectionSetup.done();
}
Tracer trace = null;
try {
User user = UserConverter.toThriftUser(UserContext.getUser());
client.get().setUser(user);
TraceId traceId = Trace.getTraceId();
if (traceId != null) {
client.get().startTrace(traceId.getRootId(), traceId.getRequestId());
trace = Trace.trace("thrift client", Trace.param("connection", getConnectionStr(client.get())));