JMXMetricInsight should log nothing at INFO level (#7367)

if not configured to collect any metrics
This commit is contained in:
Peter Findeisen 2022-12-09 01:12:45 -08:00 committed by GitHub
parent 8903831d3d
commit 5c9a9d6020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
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 {