From 2f3ffd3829873b8f0d83ec598dc66dae5778fd98 Mon Sep 17 00:00:00 2001 From: Vikentiy Fesunov Date: Thu, 25 Nov 2021 17:48:22 +0100 Subject: [PATCH 1/2] Re-enable aggregation by default Setting was enabled by default in #158, but this change was reverted by accident when #157 was merged. --- src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java b/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java index f394890b..972a85f6 100644 --- a/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java +++ b/src/main/java/com/timgroup/statsd/NonBlockingStatsDClient.java @@ -90,7 +90,7 @@ String tag() { public static final boolean DEFAULT_BLOCKING = false; public static final boolean DEFAULT_ENABLE_TELEMETRY = true; - public static final boolean DEFAULT_ENABLE_AGGREGATION = false; + public static final boolean DEFAULT_ENABLE_AGGREGATION = true; public static final String CLIENT_TAG = "client:java"; public static final String CLIENT_VERSION_TAG = "client_version:"; From 1dc3b95c9e782ec328c9d4f14ab0d97f3dd01b09 Mon Sep 17 00:00:00 2001 From: Vikentiy Fesunov Date: Thu, 25 Nov 2021 18:28:20 +0100 Subject: [PATCH 2/2] Disable aggregation for telemetry tests --- src/test/java/com/timgroup/statsd/TelemetryTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/com/timgroup/statsd/TelemetryTest.java b/src/test/java/com/timgroup/statsd/TelemetryTest.java index 0ad40f35..687f2f89 100644 --- a/src/test/java/com/timgroup/statsd/TelemetryTest.java +++ b/src/test/java/com/timgroup/statsd/TelemetryTest.java @@ -97,6 +97,7 @@ public StatsDNonBlockingTelemetry(final String prefix, final int queueSize, Stri .processorWorkers(processorWorkers) .senderWorkers(senderWorkers) .blocking(blocking) + .enableAggregation(false) .enableTelemetry(enableTelemetry) .telemetryFlushInterval(telemetryFlushInterval) .resolve());