NSAmelchev commented on a change in pull request #6737: IGNITE-11944  [IEP-35] 
OpencensusExporter should export Histogram metrics
URL: https://github.com/apache/ignite/pull/6737#discussion_r324074147
 
 

 ##########
 File path: 
modules/opencensus/src/main/java/org/apache/ignite/spi/metric/opencensus/OpenCensusMetricExporterSpi.java
 ##########
 @@ -118,6 +120,26 @@
      */
     private Map<String, Measure> measures = new HashMap<>();
 
+    /** Cached histogram metrics intervals names. */
+    private Map<T2<String, long[]>, String[]> histogramNames = new HashMap<>();
+
+    /** Create histogram interval names. */
+    private static final Function<T2<String, long[]>, String[]> 
CREATE_INTERVAL_NAMES = k -> {
+        String histogramName = k.get1();
+        long[] bounds = k.get2();
+
+        String[] names = new String[bounds.length + 1];
+
+        for (int i = 0; i < bounds.length + 1; i++) {
 
 Review comment:
   Done.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to