Log large transactions at proxy

This can help debugging where large transactions are coming from.
This commit is contained in:
Jingyu Zhou 2019-07-19 11:10:48 -07:00
parent fcf22cf264
commit d8fb1ea2d3
1 changed files with 6 additions and 0 deletions

View File

@ -378,6 +378,12 @@ ACTOR Future<Void> commitBatcher(ProxyCommitData *commitData, PromiseStream<std:
continue;
}
if (bytes > FLOW_KNOBS->PACKET_WARNING) {
TraceEvent(!g_network->isSimulated() ? SevWarnAlways : SevWarn, "LargeTransaction")
.suppressFor(1.0)
.detail("Size", transactionSize)
.detail("Client", req.reply.getEndpoint().getPrimaryAddress());
}
++commitData->stats.txnCommitIn;
if(req.debugID.present()) {