mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-01-11 00:12:04 -06:00
Log e2e latency at debugging levelˆ
This commit is contained in:
parent
675f1c99df
commit
c516baaedd
@ -116,10 +116,11 @@ public class OpTimeTrackKafkaConsumer extends OpTimeTrackKafkaClient {
|
|||||||
if (record != null) {
|
if (record != null) {
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.debug(
|
logger.debug(
|
||||||
"Receiving message is successful: [{}] - offset({}), cycle ({})",
|
"Receiving message is successful: [{}] - offset({}), cycle ({}), e2e_latency_ms({})",
|
||||||
printRecvedMsg(record),
|
printRecvedMsg(record),
|
||||||
record.offset(),
|
record.offset(),
|
||||||
cycle);
|
cycle,
|
||||||
|
System.currentTimeMillis() - record.timestamp());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!autoCommitEnabled) {
|
if (!autoCommitEnabled) {
|
||||||
|
Loading…
Reference in New Issue
Block a user