From: David ‘Bombe’ Roden Date: Fri, 2 Aug 2019 07:10:50 +0000 (+0200) Subject: 📈 Use different configuration for histogram X-Git-Tag: v81^2~139 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a10581786668d3bd2936c2963210f1408be98ead;p=Sone.git 📈 Use different configuration for histogram --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneParser.java b/src/main/java/net/pterodactylus/sone/core/SoneParser.java index bd68095..d82dab5 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneParser.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneParser.java @@ -33,7 +33,7 @@ public class SoneParser { @Inject public SoneParser(Database database, MetricRegistry metricRegistry) { this.database = database; - this.soneParsingDurationHistogram = metricRegistry.histogram("sone.parsing.duration"); + this.soneParsingDurationHistogram = metricRegistry.histogram("sone.parsing.duration", () -> new Histogram(new ExponentiallyDecayingReservoir(3000, 0))); } @Nullable