Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ protected JmxScraperContainer customizeScraperContainer(
JmxScraperContainer scraper, GenericContainer<?> target, Path tempDir) {
return scraper
.withTargetSystem("jvm")
// Since JVM metrics were be added to instrumentation, the default "auto" source
// means that the definitions in instrumentation will be used, and thus this test will fail
// due to metrics differences, adding an explicit "legacy" source is required to continue
// testing the JVM metrics defined in this project.
// https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13392
.withTargetSystemSource("legacy")
// also testing custom yaml
.withCustomYaml("custom-metrics.yaml");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ protected void startContainers(Path tmpDir) {
// Create and initialize scraper container
scraper =
new JmxScraperContainer(otlpEndpoint, scraperBaseImage())
// Since JVM metrics were be added to instrumentation, the default "auto" source
// means that the definitions in instrumentation will be used, and thus tests will fail
// due to metrics differences, adding an explicit "legacy" source is required to
// continue
// testing metrics defined in this project.
.withTargetSystemSource("legacy")
.withLogConsumer(new Slf4jLogConsumer(jmxScraperLogger))
.withNetwork(network)
.withRmiServiceUrl(TARGET_SYSTEM_NETWORK_ALIAS, JMX_PORT);
Expand Down