Skip to content

Commit 8823ffc

Browse files
committed
try out using multiple configurations
1 parent fcdc4df commit 8823ffc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

instrumentation/spring/spring-boot-autoconfigure/src/main/javaSpring3/io/opentelemetry/instrumentation/spring/autoconfigure/internal/instrumentation/runtimemetrics/RuntimeMetricsBeanRegistrationExcludeFilter.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public boolean isExcludedFromAotProcessing(RegisteredBean registeredBean) {
2020
// The JFR-based runtime metric code is excluded from the Spring AOT processing step.
2121
// That way, this code is not included in a Spring native image application.
2222

23-
return "io.opentelemetry.instrumentation.spring.autoconfigure.internal.instrumentation.runtimemetrics.Java17RuntimeMetricsProvider"
23+
// just checking that this works for @Configuration classes
24+
return "io.opentelemetry.instrumentation.spring.autoconfigure.internal.instrumentation.runtimemetrics.RuntimeMetricsAutoConfiguration"
2425
.equals(registeredBean.getBeanName());
2526
}
2627
}

0 commit comments

Comments
 (0)