You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instrumentation/servlet/servlet-3.0/src/main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/servlet/v3_0/nowrapping/Servlet30AndFilterInstrumentation.java
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -205,12 +205,16 @@ public static void exit(
205
205
}
206
206
}
207
207
} finally {
208
-
if (throwableinstanceofHypertraceEvaluationException) {
209
-
httpResponse.setStatus(403);
210
-
// bytebuddy treats the reassignment of this variable to null as an instruction to
211
-
// suppress
212
-
// this exception, which is what we want
213
-
throwable = null;
208
+
Throwabletmp = throwable;
209
+
while (tmp != null) { // loop in case our exception is nested (eg. springframework)
210
+
if (tmpinstanceofHypertraceEvaluationException) {
211
+
httpResponse.setStatus(403);
212
+
// bytebuddy treats the reassignment of this variable to null as an instruction to
Copy file name to clipboardExpand all lines: instrumentation/servlet/servlet-3.0/src/test/java/io/opentelemetry/javaagent/instrumentation/hypertrace/servlet/v3_0/nowrapping/Servlet30InstrumentationTest.java
0 commit comments