Commit e2b8677 1 parent 79f08f7 commit e2b8677 Copy full SHA for e2b8677
File tree 2 files changed +11
-9
lines changed
implementations/micrometer-registry-signalfx/src/main/java/io/micrometer/signalfx
2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,14 @@ default String accessToken() {
43
43
}
44
44
45
45
/**
46
- * Returns {@code true} if the signalfx registry should emit histogram buckets.
46
+ * Returns {@code true} if the signalfx registry should emit histogram buckets as
47
+ * CumulativeCounter instead of Gauge (as it is by default).
47
48
*
48
- * @return {@code true} if the signalfx registry should emit histogram buckets.
49
+ * @return {@code true} if the signalfx registry should emit histogram buckets as
50
+ * CumulativeCounter instead of Gauge (as it is by default).
49
51
*/
50
52
default Boolean fixHistogramBucketsType () {
51
- return getBoolean (this , "reportHistogramBuckets " ).orElse (false );
53
+ return getBoolean (this , "fixHistogramBucketsType " ).orElse (false );
52
54
}
53
55
54
56
/**
Original file line number Diff line number Diff line change @@ -246,14 +246,14 @@ protected TimeUnit getBaseTimeUnit() {
246
246
247
247
private DistributionStatisticConfig updateConfig (
248
248
DistributionStatisticConfig distributionStatisticConfig ) {
249
- // Add the +Inf bucket since the "count" resets every export.
250
- double [] sla = distributionStatisticConfig .getServiceLevelObjectiveBoundaries ();
251
- if (sla == null || sla .length == 0 ) {
249
+ double [] sloBoundaries = distributionStatisticConfig .getServiceLevelObjectiveBoundaries ();
250
+ if (sloBoundaries == null || sloBoundaries .length == 0 ) {
252
251
return distributionStatisticConfig ;
253
252
}
254
- double [] newSLA = sla ;
255
- if (!isPositiveInf (sla [sla .length - 1 ])) {
256
- newSLA = Arrays .copyOf (sla , sla .length + 1 );
253
+ double [] newSLA = sloBoundaries ;
254
+ // Add the +Inf bucket since the "count" resets every export.
255
+ if (!isPositiveInf (sloBoundaries [sloBoundaries .length - 1 ])) {
256
+ newSLA = Arrays .copyOf (sloBoundaries , sloBoundaries .length + 1 );
257
257
newSLA [newSLA .length - 1 ] = Double .MAX_VALUE ;
258
258
}
259
259
return DistributionStatisticConfig .builder ()
You can’t perform that action at this time.
0 commit comments