Skip to content

Commit

Permalink
spotless apply
Browse files Browse the repository at this point in the history
  • Loading branch information
thugrock7 committed Dec 17, 2024
1 parent d9c7a76 commit 8f09356
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ public static void exit(

if (!request.isAsyncStarted()) {
if (instrumentationConfig.httpHeaders().response()) {
httpResponse.flushBuffer();
if (throwable == null && !httpResponse.isCommitted()) {
httpResponse.flushBuffer();
}
for (String headerName : httpResponse.getHeaderNames()) {
String headerValue = httpResponse.getHeader(headerName);
currentSpan.setAttribute(
Expand Down Expand Up @@ -217,8 +219,8 @@ public static void exit(
urlEncodedMapContextStore);
}
}
} catch (IOException ignored) {}
finally {
} catch (IOException ignored) {
} finally {
Throwable tmp = throwable;
while (tmp != null) { // loop in case our exception is nested (eg. springframework)
if (tmp instanceof HypertraceEvaluationException) {
Expand Down

0 comments on commit 8f09356

Please sign in to comment.