2828 percent0 = []float64 {10 , 50 , 90 }
2929
3030 sum1 = "sum1"
31+ sum2 = "sum2"
3132 gauge1 = "gauge1"
3233 histogram1 = "histogram1"
3334 summary1 = "summary1"
@@ -291,6 +292,7 @@ func TestMultiMetrics(t *testing.T) {
291292 testhelper .SumMetric ("example_process_start_time_seconds" , testhelper .DoublePoint (nil , startTime , currentTime , matchBuilderStartTime )),
292293 testhelper .GaugeMetric (gauge1 , testhelper .DoublePoint (k1v1k2v2 , t1 , t1 , 44 )),
293294 testhelper .SumMetric (sum1 , testhelper .DoublePoint (k1v1k2v2 , t1 , t1 , 44 )),
295+ testhelper .SumMetric (sum2 , testhelper .IntPoint (k1v1k2v2 , t1 , t1 , 44 )),
294296 testhelper .HistogramMetric (histogram1 , testhelper .HistogramPoint (k1v1k2v2 , t1 , t1 , bounds0 , []uint64 {4 , 2 , 3 , 7 })),
295297 testhelper .ExponentialHistogramMetric (exponentialHistogram1 , testhelper .ExponentialHistogramPoint (k1v1k2v2 , t1 , t1 , 3 , 1 , 0 , []uint64 {}, - 2 , []uint64 {4 , 2 , 3 , 7 })),
296298 testhelper .SummaryMetric (summary1 , testhelper .SummaryPoint (k1v1k2v2 , t1 , t1 , 10 , 40 , percent0 , []float64 {1 , 5 , 8 })),
@@ -299,6 +301,7 @@ func TestMultiMetrics(t *testing.T) {
299301 testhelper .SumMetric ("example_process_start_time_seconds" , testhelper .DoublePoint (nil , matchedStartTimeStamp , currentTime , matchBuilderStartTime )),
300302 testhelper .GaugeMetric (gauge1 , testhelper .DoublePoint (k1v1k2v2 , t1 , t1 , 44 )),
301303 testhelper .SumMetric (sum1 , testhelper .DoublePoint (k1v1k2v2 , matchedStartTimeStamp , t1 , 44 )),
304+ testhelper .SumMetric (sum2 , testhelper .IntPoint (k1v1k2v2 , matchedStartTimeStamp , t1 , 44 )),
302305 testhelper .HistogramMetric (histogram1 , testhelper .HistogramPoint (k1v1k2v2 , matchedStartTimeStamp , t1 , bounds0 , []uint64 {4 , 2 , 3 , 7 })),
303306 testhelper .ExponentialHistogramMetric (exponentialHistogram1 , testhelper .ExponentialHistogramPoint (k1v1k2v2 , matchedStartTimeStamp , t1 , 3 , 1 , 0 , []uint64 {}, - 2 , []uint64 {4 , 2 , 3 , 7 })),
304307 testhelper .SummaryMetric (summary1 , testhelper .SummaryPoint (k1v1k2v2 , matchedStartTimeStamp , t1 , 10 , 40 , percent0 , []float64 {1 , 5 , 8 })),
@@ -310,6 +313,7 @@ func TestMultiMetrics(t *testing.T) {
310313 testhelper .SumMetric ("example_process_start_time_seconds" , testhelper .DoublePoint (nil , startTime , currentTime , matchBuilderStartTime )),
311314 testhelper .GaugeMetric (gauge1 , testhelper .DoublePoint (k1v1k2v2 , t2 , t2 , 66 )),
312315 testhelper .SumMetric (sum1 , testhelper .DoublePoint (k1v1k2v2 , t2 , t2 , 66 )),
316+ testhelper .SumMetric (sum2 , testhelper .IntPoint (k1v1k2v2 , t2 , t2 , 66 )),
313317 testhelper .HistogramMetric (histogram1 , testhelper .HistogramPoint (k1v1k2v2 , t2 , t2 , bounds0 , []uint64 {6 , 3 , 4 , 8 })),
314318 testhelper .ExponentialHistogramMetric (exponentialHistogram1 , testhelper .ExponentialHistogramPoint (k1v1k2v2 , t2 , t2 , 3 , 1 , 0 , []uint64 {}, - 2 , []uint64 {6 , 2 , 3 , 7 })),
315319 testhelper .SummaryMetric (summary1 , testhelper .SummaryPoint (k1v1k2v2 , t2 , t2 , 15 , 70 , percent0 , []float64 {7 , 44 , 9 })),
@@ -318,6 +322,7 @@ func TestMultiMetrics(t *testing.T) {
318322 testhelper .SumMetric ("example_process_start_time_seconds" , testhelper .DoublePoint (nil , matchedStartTimeStamp , currentTime , matchBuilderStartTime )),
319323 testhelper .GaugeMetric (gauge1 , testhelper .DoublePoint (k1v1k2v2 , t2 , t2 , 66 )),
320324 testhelper .SumMetric (sum1 , testhelper .DoublePoint (k1v1k2v2 , matchedStartTimeStamp , t2 , 66 )),
325+ testhelper .SumMetric (sum2 , testhelper .IntPoint (k1v1k2v2 , matchedStartTimeStamp , t2 , 66 )),
321326 testhelper .HistogramMetric (histogram1 , testhelper .HistogramPoint (k1v1k2v2 , matchedStartTimeStamp , t2 , bounds0 , []uint64 {6 , 3 , 4 , 8 })),
322327 testhelper .ExponentialHistogramMetric (exponentialHistogram1 , testhelper .ExponentialHistogramPoint (k1v1k2v2 , matchedStartTimeStamp , t2 , 3 , 1 , 0 , []uint64 {}, - 2 , []uint64 {6 , 2 , 3 , 7 })),
323328 testhelper .SummaryMetric (summary1 , testhelper .SummaryPoint (k1v1k2v2 , matchedStartTimeStamp , t2 , 15 , 70 , percent0 , []float64 {7 , 44 , 9 })),
@@ -329,6 +334,7 @@ func TestMultiMetrics(t *testing.T) {
329334 testhelper .SumMetric ("example_process_start_time_seconds" , testhelper .DoublePoint (nil , startTime , currentTime , matchBuilderStartTime )),
330335 testhelper .GaugeMetric (gauge1 , testhelper .DoublePoint (k1v1k2v2 , t3 , t3 , 55 )),
331336 testhelper .SumMetric (sum1 , testhelper .DoublePoint (k1v1k2v2 , t3 , t3 , 55 )),
337+ testhelper .SumMetric (sum2 , testhelper .IntPoint (k1v1k2v2 , t3 , t3 , 55 )),
332338 testhelper .HistogramMetric (histogram1 , testhelper .HistogramPoint (k1v1k2v2 , t3 , t3 , bounds0 , []uint64 {5 , 3 , 2 , 7 })),
333339 testhelper .ExponentialHistogramMetric (exponentialHistogram1 , testhelper .ExponentialHistogramPoint (k1v1k2v2 , t3 , t3 , 3 , 1 , 0 , []uint64 {}, - 2 , []uint64 {5 , 1 , 2 , 6 })),
334340 testhelper .SummaryMetric (summary1 , testhelper .SummaryPoint (k1v1k2v2 , t3 , t3 , 12 , 66 , percent0 , []float64 {3 , 22 , 5 })),
@@ -337,6 +343,7 @@ func TestMultiMetrics(t *testing.T) {
337343 testhelper .SumMetric ("example_process_start_time_seconds" , testhelper .DoublePoint (nil , matchedStartTimeStamp , currentTime , matchBuilderStartTime )),
338344 testhelper .GaugeMetric (gauge1 , testhelper .DoublePoint (k1v1k2v2 , t3 , t3 , 55 )),
339345 testhelper .SumMetric (sum1 , testhelper .DoublePoint (k1v1k2v2 , t2 , t3 , 55 )),
346+ testhelper .SumMetric (sum2 , testhelper .IntPoint (k1v1k2v2 , t2 , t3 , 55 )),
340347 testhelper .HistogramMetric (histogram1 , testhelper .HistogramPoint (k1v1k2v2 , t2 , t3 , bounds0 , []uint64 {5 , 3 , 2 , 7 })),
341348 testhelper .ExponentialHistogramMetric (exponentialHistogram1 , testhelper .ExponentialHistogramPoint (k1v1k2v2 , t2 , t3 , 3 , 1 , 0 , []uint64 {}, - 2 , []uint64 {5 , 1 , 2 , 6 })),
342349 testhelper .SummaryMetric (summary1 , testhelper .SummaryPoint (k1v1k2v2 , t2 , t3 , 12 , 66 , percent0 , []float64 {3 , 22 , 5 })),
@@ -347,13 +354,15 @@ func TestMultiMetrics(t *testing.T) {
347354 Metrics : testhelper .Metrics (
348355 testhelper .SumMetric ("example_process_start_time_seconds" , testhelper .DoublePoint (nil , startTime , currentTime , matchBuilderStartTime )),
349356 testhelper .SumMetric (sum1 , testhelper .DoublePoint (k1v1k2v2 , t4 , t4 , 72 )),
357+ testhelper .SumMetric (sum2 , testhelper .IntPoint (k1v1k2v2 , t4 , t4 , 72 )),
350358 testhelper .HistogramMetric (histogram1 , testhelper .HistogramPoint (k1v1k2v2 , t4 , t4 , bounds0 , []uint64 {7 , 4 , 2 , 12 })),
351359 testhelper .ExponentialHistogramMetric (exponentialHistogram1 , testhelper .ExponentialHistogramPoint (k1v1k2v2 , t4 , t4 , 3 , 1 , 0 , []uint64 {}, - 2 , []uint64 {6 , 2 , 3 , 7 })),
352360 testhelper .SummaryMetric (summary1 , testhelper .SummaryPoint (k1v1k2v2 , t4 , t4 , 14 , 96 , percent0 , []float64 {9 , 47 , 8 })),
353361 ),
354362 Adjusted : testhelper .Metrics (
355363 testhelper .SumMetric ("example_process_start_time_seconds" , testhelper .DoublePoint (nil , matchedStartTimeStamp , currentTime , matchBuilderStartTime )),
356364 testhelper .SumMetric (sum1 , testhelper .DoublePoint (k1v1k2v2 , t2 , t4 , 72 )),
365+ testhelper .SumMetric (sum2 , testhelper .IntPoint (k1v1k2v2 , t2 , t4 , 72 )),
357366 testhelper .HistogramMetric (histogram1 , testhelper .HistogramPoint (k1v1k2v2 , t2 , t4 , bounds0 , []uint64 {7 , 4 , 2 , 12 })),
358367 testhelper .ExponentialHistogramMetric (exponentialHistogram1 , testhelper .ExponentialHistogramPoint (k1v1k2v2 , t2 , t4 , 3 , 1 , 0 , []uint64 {}, - 2 , []uint64 {6 , 2 , 3 , 7 })),
359368 testhelper .SummaryMetric (summary1 , testhelper .SummaryPoint (k1v1k2v2 , t2 , t4 , 14 , 96 , percent0 , []float64 {9 , 47 , 8 })),
@@ -364,13 +373,15 @@ func TestMultiMetrics(t *testing.T) {
364373 Metrics : testhelper .Metrics (
365374 testhelper .SumMetric ("example_process_start_time_seconds" , testhelper .DoublePoint (nil , startTime , currentTime , matchBuilderStartTime )),
366375 testhelper .SumMetric (sum1 , testhelper .DoublePoint (k1v1k2v2 , t5 , t5 , 71 )),
376+ testhelper .SumMetric (sum2 , testhelper .IntPoint (k1v1k2v2 , t5 , t5 , 71 )),
367377 testhelper .HistogramMetric (histogram1 , testhelper .HistogramPoint (k1v1k2v2 , t5 , t5 , bounds0 , []uint64 {7 , 4 , 20 , 11 })),
368378 testhelper .ExponentialHistogramMetric (exponentialHistogram1 , testhelper .ExponentialHistogramPoint (k1v1k2v2 , t5 , t5 , 3 , 1 , 0 , []uint64 {}, - 2 , []uint64 {6 , 2 , 3 , 6 })),
369379 testhelper .SummaryMetric (summary1 , testhelper .SummaryPoint (k1v1k2v2 , t5 , t5 , 14 , 95 , percent0 , []float64 {9 , 47 , 8 })),
370380 ),
371381 Adjusted : testhelper .Metrics (
372382 testhelper .SumMetric ("example_process_start_time_seconds" , testhelper .DoublePoint (nil , matchedStartTimeStamp , currentTime , matchBuilderStartTime )),
373383 testhelper .SumMetric (sum1 , testhelper .DoublePoint (k1v1k2v2 , t4 , t5 , 71 )),
384+ testhelper .SumMetric (sum2 , testhelper .IntPoint (k1v1k2v2 , t4 , t5 , 71 )),
374385 testhelper .HistogramMetric (histogram1 , testhelper .HistogramPoint (k1v1k2v2 , t4 , t5 , bounds0 , []uint64 {7 , 4 , 20 , 11 })),
375386 testhelper .ExponentialHistogramMetric (exponentialHistogram1 , testhelper .ExponentialHistogramPoint (k1v1k2v2 , t4 , t5 , 3 , 1 , 0 , []uint64 {}, - 2 , []uint64 {6 , 2 , 3 , 6 })),
376387 testhelper .SummaryMetric (summary1 , testhelper .SummaryPoint (k1v1k2v2 , t4 , t5 , 14 , 95 , percent0 , []float64 {9 , 47 , 8 })),
0 commit comments