public final class MicrometerChannelMetricsHandler extends AbstractChannelMetricsHandler
ChannelHandler
for collecting metrics on protocol level.
This class is based on ChannelMetricsHandler
, but it utilizes Micrometer's Observation
.ChannelHandler.Sharable
Modifier and Type | Method and Description |
---|---|
ChannelHandler |
connectMetricsHandler() |
MicrometerChannelMetricsRecorder |
recorder() |
ChannelHandler |
tlsMetricsHandler() |
channelActive, channelInactive, channelRead, channelRegistered, exceptionCaught, recordException, recordRead, recordWrite, write
bind, close, connect, deregister, disconnect, flush, read
channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerAdded, handlerRemoved
public ChannelHandler connectMetricsHandler()
connectMetricsHandler
in class AbstractChannelMetricsHandler
public ChannelHandler tlsMetricsHandler()
tlsMetricsHandler
in class AbstractChannelMetricsHandler
public MicrometerChannelMetricsRecorder recorder()
recorder
in class AbstractChannelMetricsHandler