Package io.opencensus.trace
Class Tracing
java.lang.Object
io.opencensus.trace.Tracing
Class that manages a global instance of the
TraceComponent
.- Since:
- 0.5
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Clock
getClock()
Returns the globalClock
.static ExportComponent
Returns the globalExportComponent
.static PropagationComponent
Returns the globalPropagationComponent
.static TraceConfig
Returns the globalTraceConfig
.static Tracer
Returns the globalTracer
.(package private) static TraceComponent
loadTraceComponent
(ClassLoader classLoader)
-
Field Details
-
logger
-
traceComponent
-
-
Constructor Details
-
Tracing
private Tracing()
-
-
Method Details
-
getTracer
Returns the globalTracer
.- Returns:
- the global
Tracer
. - Since:
- 0.5
-
getPropagationComponent
Returns the globalPropagationComponent
.- Returns:
- the global
PropagationComponent
. - Since:
- 0.5
-
getClock
Returns the globalClock
.- Returns:
- the global
Clock
. - Since:
- 0.5
-
getExportComponent
Returns the globalExportComponent
.- Returns:
- the global
ExportComponent
. - Since:
- 0.5
-
getTraceConfig
Returns the globalTraceConfig
.- Returns:
- the global
TraceConfig
. - Since:
- 0.5
-
loadTraceComponent
-