fix MetricsHttpAgent metrics twice (#5029)
This commit is contained in:
parent
b1c39a6354
commit
3dd7915aa6
@ -53,7 +53,6 @@ public class MetricsHttpAgent implements HttpAgent {
|
|||||||
throw e;
|
throw e;
|
||||||
} finally {
|
} finally {
|
||||||
timer.observeDuration();
|
timer.observeDuration();
|
||||||
timer.close();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -70,7 +69,6 @@ public class MetricsHttpAgent implements HttpAgent {
|
|||||||
throw e;
|
throw e;
|
||||||
} finally {
|
} finally {
|
||||||
timer.observeDuration();
|
timer.observeDuration();
|
||||||
timer.close();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -84,11 +82,9 @@ public class MetricsHttpAgent implements HttpAgent {
|
|||||||
try {
|
try {
|
||||||
result = httpAgent.httpDelete(path, headers, paramValues, encode, readTimeoutMs);
|
result = httpAgent.httpDelete(path, headers, paramValues, encode, readTimeoutMs);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
||||||
throw e;
|
throw e;
|
||||||
} finally {
|
} finally {
|
||||||
timer.observeDuration();
|
timer.observeDuration();
|
||||||
timer.close();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user