Package io.opencensus.trace
Class Tracing
- java.lang.Object
-
- io.opencensus.trace.Tracing
-
public final class Tracing extends java.lang.ObjectClass that manages a global instance of theTraceComponent.- Since:
- 0.5
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.logging.Loggerloggerprivate static TraceComponenttraceComponent
-
Constructor Summary
Constructors Modifier Constructor Description privateTracing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClockgetClock()Returns the globalClock.static ExportComponentgetExportComponent()Returns the globalExportComponent.static PropagationComponentgetPropagationComponent()Returns the globalPropagationComponent.static TraceConfiggetTraceConfig()Returns the globalTraceConfig.static TracergetTracer()Returns the globalTracer.(package private) static TraceComponentloadTraceComponent(java.lang.ClassLoader classLoader)
-
-
-
Field Detail
-
logger
private static final java.util.logging.Logger logger
-
traceComponent
private static final TraceComponent traceComponent
-
-
Method Detail
-
getTracer
public static Tracer getTracer()
Returns the globalTracer.- Returns:
- the global
Tracer. - Since:
- 0.5
-
getPropagationComponent
public static PropagationComponent getPropagationComponent()
Returns the globalPropagationComponent.- Returns:
- the global
PropagationComponent. - Since:
- 0.5
-
getClock
public static Clock getClock()
Returns the globalClock.- Returns:
- the global
Clock. - Since:
- 0.5
-
getExportComponent
public static ExportComponent getExportComponent()
Returns the globalExportComponent.- Returns:
- the global
ExportComponent. - Since:
- 0.5
-
getTraceConfig
public static TraceConfig getTraceConfig()
Returns the globalTraceConfig.- Returns:
- the global
TraceConfig. - Since:
- 0.5
-
loadTraceComponent
static TraceComponent loadTraceComponent(@Nullable java.lang.ClassLoader classLoader)
-
-