parent
1bb412b44c
commit
da20d8bb8d
|
@ -74,6 +74,7 @@ class RestClientWrapper {
|
||||||
response = (Response) method.invoke(target, args);
|
response = (Response) method.invoke(target, args);
|
||||||
} catch (Throwable exception) {
|
} catch (Throwable exception) {
|
||||||
throwable = exception;
|
throwable = exception;
|
||||||
|
throw throwable;
|
||||||
} finally {
|
} finally {
|
||||||
instrumenter.end(context, otelRequest, response, throwable);
|
instrumenter.end(context, otelRequest, response, throwable);
|
||||||
}
|
}
|
||||||
|
@ -102,6 +103,7 @@ class RestClientWrapper {
|
||||||
return method.invoke(target, args);
|
return method.invoke(target, args);
|
||||||
} catch (Throwable exception) {
|
} catch (Throwable exception) {
|
||||||
throwable = exception;
|
throwable = exception;
|
||||||
|
throw throwable;
|
||||||
} finally {
|
} finally {
|
||||||
if (throwable != null) {
|
if (throwable != null) {
|
||||||
instrumenter.end(context, otelRequest, null, throwable);
|
instrumenter.end(context, otelRequest, null, throwable);
|
||||||
|
|
Loading…
Reference in New Issue