Skip to content

Commit f9841f2

Browse files
committed
add a few comments for clarity
1 parent 2075314 commit f9841f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jmx-scraper/src/integrationTest/java/io/opentelemetry/contrib/jmxscraper/JmxConnectionTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ private static JmxScraperContainer scraperContainer() {
118118
return new JmxScraperContainer(DUMMY_OTLP_ENDPOINT, SCRAPER_BASE_IMAGE)
119119
.withLogConsumer(new Slf4jLogConsumer(jmxScraperLogger))
120120
.withNetwork(network)
121+
// mandatory to have a target system even if we don't collect metrics
121122
.withTargetSystem("jvm")
123+
// we are only testing JMX connection here
122124
.withTestJmx();
123125
}
124126

0 commit comments

Comments
 (0)