📈 Use different configuration for histogram
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 2 Aug 2019 07:10:50 +0000 (09:10 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 2 Aug 2019 11:44:27 +0000 (13:44 +0200)
src/main/java/net/pterodactylus/sone/core/SoneParser.java

index bd68095..d82dab5 100644 (file)
@@ -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