JMXMetricInsight should log nothing at INFO level
if not configured to collect any metrics
MODIFY
instrumentation/jmx-metrics/library/src/main/java/io/opentelemetry/instrumentation/jmx/engine/JmxMetricInsight.java
instrumentation/jmx-metrics/library/src/main/java/io/opentelemetry/instrumentation/jmx/engine/JmxMetricInsight.java
package io.opentelemetry.instrumentation.jmx.engine;
-import static java.util.logging.Level.INFO;
+import static java.util.logging.Level.FINE;
import io.opentelemetry.api.OpenTelemetry;
import java.util.logging.Logger;
@@ -36,7 +36,7 @@ public class JmxMetricInsight {
public void start(MetricConfiguration conf) {
if (conf.isEmpty()) {
logger.log(
- INFO,
+ FINE,
"Empty JMX configuration, no metrics will be collected for InstrumentationScope "
+ INSTRUMENTATION_SCOPE);
} else {

JMXMetricInsight should log nothing at INFO level (#7367)

if not configured to collect any metrics