Class ChannelTracer


  • final class ChannelTracer
    extends java.lang.Object
    Tracks a collections of channel tracing events for a channel/subchannel.
    • Field Detail

      • logger

        static final java.util.logging.Logger logger
      • lock

        private final java.lang.Object lock
      • channelCreationTimeNanos

        private final long channelCreationTimeNanos
      • eventsLogged

        private int eventsLogged
    • Constructor Detail

      • ChannelTracer

        ChannelTracer​(InternalLogId logId,
                      int maxEvents,
                      long channelCreationTimeNanos,
                      java.lang.String description)
        Creates a channel tracer and log the creation event of the underlying channel.
        Parameters:
        logId - logId will be prepended to the logs logged to Java logger
        maxEvents - maximum number of events that are retained in memory. If not a positive number no events will be retained, but they will still be sent to the Java logger.
        channelCreationTimeNanos - the creation time of the entity being traced
        description - a description of the entity being traced