You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/12/17 03:22:22 UTC

[GitHub] [rocketmq] panzhi33 commented on pull request #3648: Display GID and Topic with namespace

panzhi33 commented on pull request #3648:
URL: https://github.com/apache/rocketmq/pull/3648#issuecomment-996405787


   > I think it is feasible to increase the string display length, but I have another method to solve this problem. Using NamespaceUtil.withoutNamespace to hide the MQ instance ID
   > 
   > ```
   > System.out.printf("%-32s  %-32s %12d %11.2f %11.2f %14d %14d%n",
   >                         UtilAll.frontStringAtLeast(NamespaceUtil.withoutNamespace(topic), 32),
   >                         UtilAll.frontStringAtLeast(NamespaceUtil.withoutNamespace(group), 32),
   >                         accumulate,
   >                         inTPS,
   >                         outTPS,
   >                         inMsgCntToday,
   >                         outMsgCntToday
   >                     );
   > ```
   
   This will cause problems with duplicate names


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org