Skip to content

Commit

Permalink
fix(#18): another attempt for native histograms
Browse files Browse the repository at this point in the history
  • Loading branch information
novoj committed May 27, 2024
1 parent e0dfe2a commit 39dde78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,16 +303,12 @@ private static Metric buildAndRegisterMetric(@Nonnull LoggedMetric metric, @Nonn
.ifPresentOrElse(
settings -> {
builder.nativeOnly()
.nativeInitialSchema(-1)
.nativeMaxNumberOfBuckets(14)
.nativeResetDuration(24, TimeUnit.HOURS);
if (!settings.unit().isBlank()) {
builder.unit(new Unit(settings.unit()));
}
},
() -> builder.nativeOnly()
.nativeInitialSchema(-1)
.nativeMaxNumberOfBuckets(14)
.nativeResetDuration(24, TimeUnit.HOURS)
.unit(new Unit("milliseconds")));
yield builder
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
<nettyHandler.version>4.1.100.Final</nettyHandler.version>
<swagger.version>2.2.15</swagger.version>
<undertow.version>2.3.13.Final</undertow.version>
<prometheus.version>1.1.0</prometheus.version>
<prometheus.version>1.3.1</prometheus.version>
<xnio.version>3.8.14.Final</xnio.version>
</properties>

Expand Down

0 comments on commit 39dde78

Please sign in to comment.