Class TraceComponentImplBase

java.lang.Object
io.opencensus.implcore.trace.TraceComponentImplBase

public final class TraceComponentImplBase extends Object
Helper class to allow sharing the code for all the TraceComponent implementations. This class cannot use inheritance because in version 0.5.* the constructor of the TraceComponent is package protected.

This can be changed back to inheritance when version 0.5.* is no longer supported.

  • Field Details

  • Constructor Details

    • TraceComponentImplBase

      public TraceComponentImplBase(Clock clock, RandomHandler randomHandler, EventQueue eventQueue)
      Creates a new TraceComponentImplBase.
      Parameters:
      clock - the clock to use throughout tracing.
      randomHandler - the random number generator for generating trace and span IDs.
      eventQueue - the queue implementation.
  • Method Details