public void handleResponse()

in aws-xray-agent/src/main/java/com/amazonaws/xray/agent/runtime/handlers/downstream/SqlHandler.java [77:91]


    public void handleResponse(Event event) {
        // If this SQL request is being ignored, we should also ignore the response
        if (decrementSqlTransactionCount() > 0) {
            return;
        }

        Subsegment subsegment = getSubsegment();
        ServiceDownstreamResponseEvent responseEvent = (ServiceDownstreamResponseEvent) event;
        Throwable thrown = responseEvent.getThrown();

        if (thrown != null) {
            subsegment.addException(thrown);
        }
        endSubsegment();
    }