From bb771163055a5afd0edd057cc76b3b5cb03bdd04 Mon Sep 17 00:00:00 2001 From: Mark Tozzi Date: Fri, 25 Jul 2025 15:27:32 -0400 Subject: [PATCH] Reduce logging levels for meter usage tests (#131935) This PR reduces the logging level of the test logging added in #111360 to Trace. The issue that logging was intended to investigate has been closed, and there doesn't appear to be any current need for this logging. If we need it in the future, it will be trivial to re-enable. --- .../test/apmintegration/TestMeterUsages.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/external-modules/apm-integration/src/main/java/org/elasticsearch/test/apmintegration/TestMeterUsages.java b/test/external-modules/apm-integration/src/main/java/org/elasticsearch/test/apmintegration/TestMeterUsages.java index a0ae21b07379a..4b1f731510e01 100644 --- a/test/external-modules/apm-integration/src/main/java/org/elasticsearch/test/apmintegration/TestMeterUsages.java +++ b/test/external-modules/apm-integration/src/main/java/org/elasticsearch/test/apmintegration/TestMeterUsages.java @@ -39,22 +39,22 @@ public TestMeterUsages(MeterRegistry meterRegistry) { this.longHistogram = meterRegistry.registerLongHistogram("es.test.long_histogram.histogram", "test", "unit"); meterRegistry.registerDoubleGauge("es.test.double_gauge.current", "test", "unit", () -> { var value = doubleWithAttributes.get(); - logger.info("[es.test.double_gauge.current] callback with value [{}]", value); + logger.trace("[es.test.double_gauge.current] callback with value [{}]", value); return value; }); meterRegistry.registerLongGauge("es.test.long_gauge.current", "test", "unit", () -> { var value = longWithAttributes.get(); - logger.info("[es.test.long_gauge.current] callback with value [{}]", value); + logger.trace("[es.test.long_gauge.current] callback with value [{}]", value); return value; }); meterRegistry.registerLongAsyncCounter("es.test.async_long_counter.total", "test", "unit", () -> { var value = longWithAttributes.get(); - logger.info("[es.test.async_long_counter.total] callback with value [{}]", value); + logger.trace("[es.test.async_long_counter.total] callback with value [{}]", value); return value; }); meterRegistry.registerDoubleAsyncCounter("es.test.async_double_counter.total", "test", "unit", () -> { var value = doubleWithAttributes.get(); - logger.info("[es.test.async_double_counter.total] callback with value [{}]", value); + logger.trace("[es.test.async_double_counter.total] callback with value [{}]", value); return value; }); } @@ -69,7 +69,7 @@ public void testUponRequest() { longHistogram.record(2); // triggers gauges and async counters - logger.info("setting async counters"); + logger.trace("setting async counters"); doubleWithAttributes.set(new DoubleWithAttributes(1.0, Map.of())); longWithAttributes.set(new LongWithAttributes(1, Map.of())); }