Skip to content

Commit 3ed5a0e

Browse files
committed
chore: try to fix build failure
Change-Id: Ia0e45b15e17a3566a957b1feca5a5f9ee7e21916
1 parent 652ea6f commit 3ed5a0e

File tree

1 file changed

+4
-1
lines changed
  • instrumentation/lettuce/lettuce-5.1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/lettuce/v5_1

1 file changed

+4
-1
lines changed

instrumentation/lettuce/lettuce-5.1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/lettuce/v5_1/CompatibilityChecker.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,18 @@
1313
import reactor.core.publisher.Mono;
1414

1515
public class CompatibilityChecker {
16+
17+
private CompatibilityChecker(){}
18+
1619
private static Boolean isCompatible;
1720
private static final Lock lock = new ReentrantLock();
1821

1922
// related to https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/10997
2023
// if users are using incompatible versions of reactor-core and lettuce
2124
// then just disable the instrumentation
2225
public static boolean checkCompatible() {
26+
lock.lock();
2327
try {
24-
lock.lock();
2528
if (isCompatible != null) {
2629
return isCompatible;
2730
}

0 commit comments

Comments
 (0)