Skip to content

Commit

Permalink
HBASE-28017 Set request and response size metrics in NettyRpcDuplexHa…
Browse files Browse the repository at this point in the history
…ndler (apache#5473)

Co-authored-by: Ray Mattingly <[email protected]>
Signed-off-by: Duo Zhang <[email protected]>
Signed-off-by: Bryan Beaudreault <[email protected]>
  • Loading branch information
2 people authored and wchevreuil committed Nov 2, 2023
1 parent 250cfa8 commit 61a06e4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ private void writeRequest(ChannelHandlerContext ctx, Call call, ChannelPromise p
} else {
ctx.write(buf, promise);
}
call.callStats.setRequestSizeBytes(totalSize);
}
}

Expand Down Expand Up @@ -193,6 +194,7 @@ private void readResponse(ChannelHandlerContext ctx, ByteBuf buf) throws IOExcep
}
return;
}
call.callStats.setResponseSizeBytes(totalSize);
if (remoteExc != null) {
call.setException(remoteExc);
return;
Expand Down

0 comments on commit 61a06e4

Please sign in to comment.