Skip to content

Commit 008b7b2

Browse files
authored
Fix synchronize access to DebuggerMetrics (#9831)
1 parent fa8da5b commit 008b7b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dd-java-agent/agent-debugger/src/main/java/com/datadog/debugger/util/DebuggerMetrics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ private DebuggerMetrics(Config config) {
2929
}
3030
}
3131

32-
public static DebuggerMetrics getInstance(Config config) {
32+
public static synchronized DebuggerMetrics getInstance(Config config) {
3333
if (INSTANCE == null) {
3434
INSTANCE = new DebuggerMetrics(config);
3535
}

0 commit comments

Comments
 (0)