Skip to content

Commit 19ac462

Browse files
authored
Reduce logging levels for meter usage tests (#131935) (#131944)
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.
1 parent 123e84c commit 19ac462

File tree

1 file changed

+5
-5
lines changed
  • test/external-modules/apm-integration/src/main/java/org/elasticsearch/test/apmintegration

1 file changed

+5
-5
lines changed

test/external-modules/apm-integration/src/main/java/org/elasticsearch/test/apmintegration/TestMeterUsages.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,22 @@ public TestMeterUsages(MeterRegistry meterRegistry) {
3939
this.longHistogram = meterRegistry.registerLongHistogram("es.test.long_histogram.histogram", "test", "unit");
4040
meterRegistry.registerDoubleGauge("es.test.double_gauge.current", "test", "unit", () -> {
4141
var value = doubleWithAttributes.get();
42-
logger.info("[es.test.double_gauge.current] callback with value [{}]", value);
42+
logger.trace("[es.test.double_gauge.current] callback with value [{}]", value);
4343
return value;
4444
});
4545
meterRegistry.registerLongGauge("es.test.long_gauge.current", "test", "unit", () -> {
4646
var value = longWithAttributes.get();
47-
logger.info("[es.test.long_gauge.current] callback with value [{}]", value);
47+
logger.trace("[es.test.long_gauge.current] callback with value [{}]", value);
4848
return value;
4949
});
5050
meterRegistry.registerLongAsyncCounter("es.test.async_long_counter.total", "test", "unit", () -> {
5151
var value = longWithAttributes.get();
52-
logger.info("[es.test.async_long_counter.total] callback with value [{}]", value);
52+
logger.trace("[es.test.async_long_counter.total] callback with value [{}]", value);
5353
return value;
5454
});
5555
meterRegistry.registerDoubleAsyncCounter("es.test.async_double_counter.total", "test", "unit", () -> {
5656
var value = doubleWithAttributes.get();
57-
logger.info("[es.test.async_double_counter.total] callback with value [{}]", value);
57+
logger.trace("[es.test.async_double_counter.total] callback with value [{}]", value);
5858
return value;
5959
});
6060
}
@@ -69,7 +69,7 @@ public void testUponRequest() {
6969
longHistogram.record(2);
7070

7171
// triggers gauges and async counters
72-
logger.info("setting async counters");
72+
logger.trace("setting async counters");
7373
doubleWithAttributes.set(new DoubleWithAttributes(1.0, Map.of()));
7474
longWithAttributes.set(new LongWithAttributes(1, Map.of()));
7575
}

0 commit comments

Comments
 (0)