Class ChannelTracer

java.lang.Object
io.grpc.internal.ChannelTracer

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

  • Constructor Details

    • ChannelTracer

      ChannelTracer(InternalLogId logId, int maxEvents, long channelCreationTimeNanos, 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
  • Method Details