tunnel client report arthas version. #1556

This commit is contained in:
hengyunabc
2020-10-26 17:15:39 +08:00
parent 6a359ccff6
commit e53f355978
6 changed files with 40 additions and 0 deletions
@@ -9,6 +9,12 @@ import java.util.concurrent.CopyOnWriteArrayList;
/**
*
* <pre>
* * 统一管理 ClassFileTransformer
* * 每个增强命令对应一个 Enhancer ,也统一在这里管理
* </pre>
*
* @see com.taobao.arthas.core.advisor.Enhancer
* @author hengyunabc 2020-05-18
*
*/
@@ -301,6 +301,7 @@ public class ArthasBootstrap {
tunnelClient = new TunnelClient();
tunnelClient.setId(configure.getAgentId());
tunnelClient.setTunnelServerUrl(configure.getTunnelServer());
tunnelClient.setVersion(ArthasBanner.version());
ChannelFuture channelFuture = tunnelClient.start();
channelFuture.await(10, TimeUnit.SECONDS);
if(channelFuture.isSuccess()) {