Skip to content

Commit ee3e1ac

Browse files
committed
cleanup
1 parent ab145c9 commit ee3e1ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ 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"
24-
.equals(registeredBean.getBeanName());
23+
return Java17RuntimeMetricsProvider.class.getName().equals(registeredBean.getBeanName());
2524
}
2625
}

0 commit comments

Comments
 (0)