Skip to content

Commit 2b44889

Browse files
committed
add missing metric collection when channel becomes inactive
1 parent 65487c6 commit 2b44889

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

netty/src/main/java/io/grpc/netty/NettyClientHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ public void channelActive(ChannelHandlerContext ctx) throws Exception {
508508
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
509509
try {
510510
logger.fine("Network channel is closed");
511+
tcpMetrics.channelInactive(ctx.channel());
511512
Status status = Status.UNAVAILABLE.withDescription("Network closed for unknown reason");
512513
lifecycleManager.notifyShutdown(status, SimpleDisconnectError.UNKNOWN);
513514
final Status streamStatus;

0 commit comments

Comments
 (0)