Log large transactions at proxy
This can help debugging where large transactions are coming from.
This commit is contained in:
parent
fcf22cf264
commit
d8fb1ea2d3
|
@ -378,6 +378,12 @@ ACTOR Future<Void> commitBatcher(ProxyCommitData *commitData, PromiseStream<std:
|
||||||
continue;
|
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;
|
++commitData->stats.txnCommitIn;
|
||||||
|
|
||||||
if(req.debugID.present()) {
|
if(req.debugID.present()) {
|
||||||
|
|
Loading…
Reference in New Issue