Skip to content

Commit

Permalink
Rename metric
Browse files Browse the repository at this point in the history
  • Loading branch information
jguerra committed Nov 15, 2023
1 parent c878c4b commit 1ffaa55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class Http2ProtocolErrorHandler extends ChannelInboundHandlerAdapter {
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
if(cause instanceof Http2Exception http2Exception && http2Exception.shutdownHint() == Http2Exception.ShutdownHint.HARD_SHUTDOWN) {
LOG.debug("Http/2 protocol error. Closing connection", cause);
SpectatorUtils.newCounter("zuul.http2.protocol.close", http2Exception.getClass().getSimpleName()).increment();
SpectatorUtils.newCounter("server.connection.http2.protocol.exception", http2Exception.getClass().getSimpleName()).increment();
ctx.writeAndFlush(new DefaultHttp2GoAwayFrame(http2Exception.error()))
.addListener(ChannelFutureListener.CLOSE);
} else {
Expand Down

0 comments on commit 1ffaa55

Please sign in to comment.