in aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/handlers/downstream/AWSHandler.java [46:57]
public void handleResponse(Event event) {
ServiceResponseEvent responseEvent = (ServiceResponseEvent) event;
Request awsReq = (Request) responseEvent.getRequest().getRequest();
Response awsResp = (Response) responseEvent.getResponse();
if (responseEvent.getThrown() == null) {
tracingHandler.afterResponse(awsReq, awsResp);
} else {
Throwable exception = responseEvent.getThrown();
tracingHandler.afterError(awsReq, awsResp, (Exception) exception);
}
}