Skip to content

Commit

Permalink
Fix missing throw statement in RestClientWrapper (#11892) (#11893)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyy1996 committed Jul 25, 2024
1 parent 1bb412b commit da20d8b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ private static Class<?> createProxyClass() {
response = (Response) method.invoke(target, args);
} catch (Throwable exception) {
throwable = exception;
throw throwable;
} finally {
instrumenter.end(context, otelRequest, response, throwable);
}
Expand Down Expand Up @@ -102,6 +103,7 @@ private static Class<?> createProxyClass() {
return method.invoke(target, args);
} catch (Throwable exception) {
throwable = exception;
throw throwable;
} finally {
if (throwable != null) {
instrumenter.end(context, otelRequest, null, throwable);
Expand Down

0 comments on commit da20d8b

Please sign in to comment.