Skip to content

Commit acdc794

Browse files
committed
add comment
1 parent 29883b5 commit acdc794

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/instrumenter/InstrumenterBuilder.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ private static boolean isIncubator() {
9898
Class.forName("io.opentelemetry.api.incubator.ExtendedOpenTelemetry");
9999
return true;
100100
} catch (ClassNotFoundException e) {
101-
// incubator module is not available
101+
// The incubator module is not available.
102+
// This only happens in OpenTelemetry API instrumentation tests, where an older version of
103+
// OpenTelemetry API is used that does not have ExtendedOpenTelemetry.
104+
// Having the incubator module without ExtendedOpenTelemetry class should still return false
105+
// for those tests to avoid a ClassNotFoundException.
102106
return false;
103107
}
104108
}

0 commit comments

Comments
 (0)