servicecomb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] WillemJiang closed pull request #561: [SCB-356] update metrics write file samples : add status code to file name
Date Thu, 01 Mar 2018 06:06:23 GMT
WillemJiang closed pull request #561: [SCB-356] update metrics write file samples : add status
code to file name
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/561
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/samples/metrics-write-file-sample/metrics-write-file/src/main/java/org/apache/servicecomb/samples/mwf/SimpleFileContentConvertor.java
b/samples/metrics-write-file-sample/metrics-write-file/src/main/java/org/apache/servicecomb/samples/mwf/SimpleFileContentConvertor.java
index 1f9c21f43..c3f3d59ce 100644
--- a/samples/metrics-write-file-sample/metrics-write-file/src/main/java/org/apache/servicecomb/samples/mwf/SimpleFileContentConvertor.java
+++ b/samples/metrics-write-file-sample/metrics-write-file/src/main/java/org/apache/servicecomb/samples/mwf/SimpleFileContentConvertor.java
@@ -76,6 +76,10 @@ private String convertMetricKey(String key) {
       builder.append(tags.get(MetricsConst.TAG_STAGE));
       builder.append(".");
       builder.append(tags.get(MetricsConst.TAG_STATISTIC));
+      if (tags.containsKey(MetricsConst.TAG_STATUS)) {
+        builder.append(".");
+        builder.append(tags.get(MetricsConst.TAG_STATUS));
+      }
       return builder.toString();
     }
   }


 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message