Package io.opencensus.trace
Class Tracing
- java.lang.Object
-
- io.opencensus.trace.Tracing
-
public final class Tracing extends java.lang.Object
Class that manages a global instance of theTraceComponent
.- Since:
- 0.5
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.logging.Logger
logger
private static TraceComponent
traceComponent
-
Constructor Summary
Constructors Modifier Constructor Description private
Tracing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Clock
getClock()
Returns the globalClock
.static ExportComponent
getExportComponent()
Returns the globalExportComponent
.static PropagationComponent
getPropagationComponent()
Returns the globalPropagationComponent
.static TraceConfig
getTraceConfig()
Returns the globalTraceConfig
.static Tracer
getTracer()
Returns the globalTracer
.(package private) static TraceComponent
loadTraceComponent(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)
-
-