Skip to content

Commit 0faac14

Browse files
committed
pr review
1 parent 9ae95f1 commit 0faac14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/internal/ConfigPropertiesUtil.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
*/
2424
public final class ConfigPropertiesUtil {
2525

26-
private static final boolean isIncubator = isIncubator();
26+
private static final boolean supportsDeclarativeConfig = supportsDeclarativeConfig();
2727

28-
private static boolean isIncubator() {
28+
private static boolean supportsDeclarativeConfig() {
2929
try {
3030
Class.forName("io.opentelemetry.api.incubator.ExtendedOpenTelemetry");
3131
return true;
@@ -141,7 +141,7 @@ public static List<String> getList(
141141

142142
/** Returns true if the given OpenTelemetry instance supports Declarative Config. */
143143
public static boolean isDeclarativeConfig(OpenTelemetry openTelemetry) {
144-
return isIncubator && openTelemetry instanceof ExtendedOpenTelemetry;
144+
return supportsDeclarativeConfig && openTelemetry instanceof ExtendedOpenTelemetry;
145145
}
146146

147147
private static List<String> filterBlanksAndNulls(String[] values) {

0 commit comments

Comments
 (0)