Skip to content

Commit 7a7fed7

Browse files
committed
remove useless config check
1 parent 8917452 commit 7a7fed7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

jmx-scraper/src/main/java/io/opentelemetry/contrib/jmxscraper/config/JmxScraperConfigFactory.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ public JmxScraperConfig createConfig(Properties props) throws ConfigurationExcep
8181
int interval = getProperty(INTERVAL_MILLISECONDS, 0);
8282
config.intervalMilliseconds = (interval == 0 ? 10000 : interval);
8383
getAndSetPropertyIfUndefined(EXPORTER_INTERVAL, config.intervalMilliseconds);
84-
if (config.intervalMilliseconds < 0) {
85-
throw new ConfigurationException(
86-
"interval must be positive, got " + config.intervalMilliseconds);
87-
}
8884

8985
config.metricsExporterType = getAndSetPropertyIfUndefined(METRICS_EXPORTER_TYPE, "logging");
9086
config.otlpExporterEndpoint = properties.getProperty(OTLP_ENDPOINT);

0 commit comments

Comments
 (0)