[ 
https://issues.apache.org/jira/browse/SCB-950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16641091#comment-16641091
 ] 

ASF GitHub Bot commented on SCB-950:
------------------------------------

wujimin commented on a change in pull request #944: [SCB-950] modify consumer 
producer metrics and add edge metrics
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/944#discussion_r223216695
 
 

 ##########
 File path: 
metrics/metrics-core/src/main/java/org/apache/servicecomb/metrics/core/publish/DefaultLogPublisher.java
 ##########
 @@ -106,83 +117,117 @@ protected void 
printThreadPoolMetrics(DefaultPublishModel model, StringBuilder s
     }
   }
 
+  protected void printEdgeLog(DefaultPublishModel model, StringBuilder sb) {
+    OperationPerfGroups edgePerf = model.getEdge().getOperationPerfGroups();
+    if (edgePerf == null) {
+      return;
+    }
+    sb.append(String.format(SIMPLE_HEADER, "edge"));
+    //clear old data
+    MeterStatisticsManager.statisticsOperationMap.clear();
 
 Review comment:
   why need global variable?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> [SCB-950] modify consumer producer metrics and add edge metrics 
> ----------------------------------------------------------------
>
>                 Key: SCB-950
>                 URL: https://issues.apache.org/jira/browse/SCB-950
>             Project: Apache ServiceComb
>          Issue Type: Improvement
>            Reporter: 何一乐
>            Assignee: 何一乐
>            Priority: Major
>
> the info in the old metics is not enough.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to