From 12565b7f3d3efda3baa1da8ec7057485a461cad1 Mon Sep 17 00:00:00 2001 From: "David.Noble@microsoft.com" Date: Thu, 1 Aug 2019 17:31:28 -0700 Subject: [PATCH] Renamed console logging property for consistency with the benchmark app's properties --- .../directconnectivity/rntbd/RntbdMetrics.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/direct-impl/src/main/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/rntbd/RntbdMetrics.java b/direct-impl/src/main/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/rntbd/RntbdMetrics.java index 56dfc89f..17ea1292 100644 --- a/direct-impl/src/main/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/rntbd/RntbdMetrics.java +++ b/direct-impl/src/main/java/com/microsoft/azure/cosmosdb/internal/directconnectivity/rntbd/RntbdMetrics.java @@ -71,9 +71,9 @@ public final class RntbdMetrics { private final Tags tags; static { - int period = Integer.getInteger("cosmos.monitoring.consoleLogging.period", 0); - if (period > 0) { - RntbdMetrics.add(RntbdMetrics.consoleLoggingRegistry(period)); + int step = Integer.getInteger("cosmos.monitoring.consoleLogging.step", 0); + if (step > 0) { + RntbdMetrics.add(RntbdMetrics.consoleLoggingRegistry(step)); } } @@ -139,7 +139,7 @@ public final class RntbdMetrics { // region Accessors @JsonIgnore - private static synchronized MeterRegistry consoleLoggingRegistry(int period) { + private static synchronized MeterRegistry consoleLoggingRegistry(final int step) { if (consoleLoggingRegistry == null) { @@ -151,7 +151,7 @@ public final class RntbdMetrics { .convertDurationsTo(TimeUnit.MILLISECONDS) .build(); - consoleReporter.start(period, TimeUnit.SECONDS); + consoleReporter.start(step, TimeUnit.SECONDS); DropwizardConfig dropwizardConfig = new DropwizardConfig() {