Fix missing throw statement in RestClientWrapper (#11892) (#11893)

This commit is contained in:
kyy1996 2024-07-25 15:19:01 +08:00 committed by GitHub
parent 1bb412b44c
commit da20d8bb8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,7 @@ class RestClientWrapper {
response = (Response) method.invoke(target, args);
} catch (Throwable exception) {
throwable = exception;
throw throwable;
} finally {
instrumenter.end(context, otelRequest, response, throwable);
}
@ -102,6 +103,7 @@ class RestClientWrapper {
return method.invoke(target, args);
} catch (Throwable exception) {
throwable = exception;
throw throwable;
} finally {
if (throwable != null) {
instrumenter.end(context, otelRequest, null, throwable);