Skip to content

Commit 8965c97

Browse files
Fixed call depth counter for sqli blocking (#7522)
1 parent 546f797 commit 8965c97

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

dd-java-agent/instrumentation/jdbc/src/main/java/datadog/trace/instrumentation/jdbc/StatementInstrumentation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public static AgentScope onEnter(
132132
// if we can't get the connection for any reason
133133
return null;
134134
} catch (BlockingException e) {
135+
CallDepthThreadLocalMap.reset(Statement.class);
135136
// re-throw blocking exceptions
136137
throw e;
137138
} catch (Throwable e) {

0 commit comments

Comments
 (0)