Skip to content

Commit

Permalink
let Corretto 21+ have non-redacted exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jackshirazi committed Nov 23, 2023
1 parent 9422833 commit a8ced6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public static void exitDoExecute(@Advice.Argument(value = 0) ClientExecutionPara
Span<?> span = (Span<?>) spanObj;
span.deactivate();
if (thrown != null) {
if (JVM_RUNTIME_INFO.isCoretto() && JVM_RUNTIME_INFO.getMajorVersion() > 16) {
if (JVM_RUNTIME_INFO.isCoretto() && JVM_RUNTIME_INFO.getMajorVersion() > 16 && JVM_RUNTIME_INFO.getMajorVersion() < 21) {
span.captureException(RedactedException.getInstance(thiz.getClass().getName()));
} else {
span.captureException(thrown);
Expand Down

0 comments on commit a8ced6c

Please sign in to comment.