Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKunz committed Dec 6, 2023
1 parent 430be21 commit eb6d623
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class ProxyLongHistogramBuilder {

public ProxyLongHistogramBuilder(LongHistogramBuilder delegate) {
this.delegate = delegate;
//apply default bucket boundaries
//apply default bucket boundaries, they are guaranteed to be ordered
List<Double> boundaries = GlobalTracer.get().getConfig(MetricsConfiguration.class).getCustomMetricsHistogramBoundaries();
delegate.setExplicitBucketBoundariesAdvice(convertToLongBoundaries(boundaries));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private static boolean checkOtelApiSupportsHistogramBucketAdvice() {
try {
DoubleHistogramBuilder.class.getMethod("setExplicitBucketBoundariesAdvice", List.class);
return true;
} catch (NoSuchMethodException e) {
} catch (NoSuchMethodException | SecurityException e) {
return false;
}
}
Expand Down

0 comments on commit eb6d623

Please sign in to comment.