public void onSendComplete() {
    networkSend.updateServerResponseMetrics();
    sendCompleteTime = time.milliseconds();
    long sendTimeMs = sendCompleteTime - networkSend.getSendStartTimeInMs();
    metrics.transmissionSendAllTime.update(sendTimeMs);
    double sendBytesRate = networkSend.getPayload().sizeInBytes() / ((double) sendTimeMs / SystemTime.MsPerSec);
    metrics.transmissionSendBytesRate.mark((long) sendBytesRate);
  }
Actions to be taken on completion of {@link Send} in {@link NetworkSend}
ambry-network/src/main/java/com/github/ambry/network/Transmission.java