From: David ‘Bombe’ Roden Date: Sat, 3 Aug 2019 08:39:16 +0000 (+0200) Subject: 📈 Add different configuration for other histogram X-Git-Tag: v81^2~136 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=31adc7e4659a45de69d044e32c7f5a8b2f2aca09;p=Sone.git 📈 Add different configuration for other histogram --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java index e138f79..07c96c4 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java @@ -151,7 +151,7 @@ public class SoneInserter extends AbstractService { this.core = core; this.eventBus = eventBus; this.freenetInterface = freenetInterface; - this.soneInsertDurationHistogram = metricRegistry.histogram("sone.insert.duration"); + this.soneInsertDurationHistogram = metricRegistry.histogram("sone.insert.duration", () -> new Histogram(new ExponentiallyDecayingReservoir(3000, 0))); this.soneInsertErrorMeter = metricRegistry.meter("sone.insert.errors"); this.soneId = soneId; this.soneModificationDetector = soneModificationDetector;