Class Tracing

java.lang.Object
io.opencensus.trace.Tracing

public final class Tracing extends Object
Class that manages a global instance of the TraceComponent.
Since:
0.5
  • Field Details

    • logger

      private static final Logger logger
    • traceComponent

      private static final TraceComponent traceComponent
  • Constructor Details

    • Tracing

      private Tracing()
  • Method Details

    • getTracer

      public static Tracer getTracer()
      Returns the global Tracer.
      Returns:
      the global Tracer.
      Since:
      0.5
    • getPropagationComponent

      public static PropagationComponent getPropagationComponent()
      Returns the global PropagationComponent.
      Returns:
      the global PropagationComponent.
      Since:
      0.5
    • getClock

      public static Clock getClock()
      Returns the global Clock.
      Returns:
      the global Clock.
      Since:
      0.5
    • getExportComponent

      public static ExportComponent getExportComponent()
      Returns the global ExportComponent.
      Returns:
      the global ExportComponent.
      Since:
      0.5
    • getTraceConfig

      public static TraceConfig getTraceConfig()
      Returns the global TraceConfig.
      Returns:
      the global TraceConfig.
      Since:
      0.5
    • loadTraceComponent

      static TraceComponent loadTraceComponent(@Nullable ClassLoader classLoader)