Add packets and batches sent to quic client stats (#24442)

This commit is contained in:
sakridge 2022-04-20 13:59:54 +02:00 committed by GitHub
parent dd15193c69
commit b64791ef79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -113,6 +113,21 @@ impl ConnectionCacheStats {
self.total_client_stats.tx_acks.load_and_reset(),
i64
),
(
"num_packets",
self.sent_packets.swap(0, Ordering::Relaxed),
i64
),
(
"total_batches",
self.total_batches.swap(0, Ordering::Relaxed),
i64
),
(
"batch_failure",
self.batch_failure.swap(0, Ordering::Relaxed),
i64
),
);
}
}